mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
A valid ip address can be IPv4/IPv6
This commit is contained in:
parent
a930c6617b
commit
d9c84edf9a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user