A valid ip address can be IPv4/IPv6

pull/29/head
Ashesh Vashi 2020-04-14 18:45:45 +05:30
parent a930c6617b
commit d9c84edf9a
1 changed files with 1 additions and 1 deletions

View File

@ -58,4 +58,4 @@ def is_valid_ip6address(addr):
def is_valid_ipaddress(addr):
return ip4re.match(addr) and is_valid_ip6address(addr)
return ip4re.match(addr) or is_valid_ip6address(addr)