Fixed: Proper port validation for download clients and connections

Closes #1642
This commit is contained in:
Mark McDowall
2017-01-26 22:35:16 -08:00
parent 3bd7c09acf
commit ef03e9e9a7
14 changed files with 17 additions and 17 deletions
@@ -10,7 +10,7 @@ namespace NzbDrone.Core.Notifications.Email
public EmailSettingsValidator()
{
RuleFor(c => c.Server).NotEmpty();
RuleFor(c => c.Port).GreaterThan(0);
RuleFor(c => c.Port).InclusiveBetween(1, 65535);
RuleFor(c => c.From).NotEmpty();
RuleFor(c => c.To).NotEmpty();
}