fixed recent typo, thanks Christian
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.0.9 (2012-09-18 13:35:42) stable
|
Version 2.0.9 (2012-09-18 13:37:38) stable
|
||||||
|
|||||||
+1
-1
@@ -169,7 +169,7 @@ def is_valid_ip_address(address):
|
|||||||
return False
|
return False
|
||||||
else: # try validate using Regex
|
else: # try validate using Regex
|
||||||
match = REGEX_IPv4.match(address)
|
match = REGEX_IPv4.match(address)
|
||||||
if match and all(0<=int(math.group(i))<256 for i in (1,2,3,4)):
|
if match and all(0<=int(match.group(i))<256 for i in (1,2,3,4)):
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
elif hasattr(socket,'inet_pton'): # assume IPv6, try using the OS
|
elif hasattr(socket,'inet_pton'): # assume IPv6, try using the OS
|
||||||
|
|||||||
Reference in New Issue
Block a user