Merge "Port validation should include 65535"
This commit is contained in:
commit
07987065c5
1
AUTHORS
1
AUTHORS
@ -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>
|
||||
|
@ -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")
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user