1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-26 22:46:53 -04:00

Don't allow port 0 as a listen port

Port 0 is not really a valid port. Using it will most likely dynamically
allocate a port to listen on.
This commit is contained in:
Mike
2014-10-02 08:32:32 -04:00
parent 10b1d44d6f
commit 87cafe0035
2 changed files with 2 additions and 2 deletions
@@ -30,7 +30,7 @@ namespace NzbDrone.Core.Validation
public static IRuleBuilderOptions<T, int> ValidPort<T>(this IRuleBuilder<T, int> ruleBuilder)
{
return ruleBuilder.SetValidator(new InclusiveBetweenValidator(0, 65535));
return ruleBuilder.SetValidator(new InclusiveBetweenValidator(1, 65535));
}
public static IRuleBuilderOptions<T, Language> ValidLanguage<T>(this IRuleBuilder<T, Language> ruleBuilder)