Merge "Port validation should include 65535"

This commit is contained in:
Jenkins 2012-03-16 20:27:38 +00:00 committed by Gerrit Code Review
commit 07987065c5
2 changed files with 2 additions and 1 deletions

View File

@ -14,6 +14,7 @@ Emma Steimann <emmasteimann@gmail.com>
Ewan Mellor <ewan.mellor@citrix.com>
Gabriel Hurley <gabriel@strikeawe.com>
Ghe Rivero <ghe@debian.org>
Greg Althaus <galthaus@austin.rr.com>
Hengqing Hu <hudayou@hotmail.com>
Ivan Kolodyazhny <e0ne@e0ne.info>
Jake Dahn <jake@ansolabs.com>

View File

@ -31,7 +31,7 @@ validate_ipv4_cidr = validators.RegexValidator(ipv4_cidr_re)
def validate_port_range(port):
if port not in range(-1, 65535):
if port not in range(-1, 65536):
raise ValidationError("Not a valid port number")