Fixed: Do not require SSL Cert Hash on Linux/OS X

This commit is contained in:
Mark McDowall
2014-05-02 07:11:59 -07:00
parent 6d8b38366f
commit 007f96677c
4 changed files with 11 additions and 3 deletions
@@ -26,5 +26,10 @@ namespace NzbDrone.Core.Validation
ruleBuilder.SetValidator(new NotEmptyValidator(null));
return ruleBuilder.SetValidator(new RegularExpressionValidator("^http(?:s)?://[a-z0-9-.]+", RegexOptions.IgnoreCase)).WithMessage("must be valid URL that");
}
public static IRuleBuilderOptions<T, int> ValidPort<T>(this IRuleBuilder<T, int> ruleBuilder)
{
return ruleBuilder.SetValidator(new InclusiveBetweenValidator(0, 65535));
}
}
}