mirror of
https://github.com/Readarr/Readarr
synced 2026-01-27 01:42:48 +01:00
Fixed: Don't allow HTTPS to be set to same port via API/UI
This commit is contained in:
parent
6508920449
commit
4aeaf04b62
1 changed files with 1 additions and 0 deletions
|
|
@ -43,6 +43,7 @@ public HostConfigModule(IConfigFileProvider configFileProvider, IConfigService c
|
|||
SharedValidator.RuleFor(c => c.Password).NotEmpty().When(c => c.AuthenticationMethod != AuthenticationType.None);
|
||||
|
||||
SharedValidator.RuleFor(c => c.SslPort).ValidPort().When(c => c.EnableSsl);
|
||||
SharedValidator.RuleFor(c => c.SslPort).NotEqual(c => c.Port).When(c => c.EnableSsl);
|
||||
SharedValidator.RuleFor(c => c.SslCertHash).NotEmpty().When(c => c.EnableSsl && OsInfo.IsWindows);
|
||||
|
||||
SharedValidator.RuleFor(c => c.Branch).NotEmpty().WithMessage("Branch name is required, 'master' is the default");
|
||||
|
|
|
|||
Loading…
Reference in a new issue