Assume IPv6 is public address

* Fixes #1629
This commit is contained in:
JonnyWong16 2022-01-26 21:33:27 -08:00
parent 994ebfc680
commit f2a664953c
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -705,7 +705,7 @@ def sanitize(obj):
def is_public_ip(host):
ip = is_valid_ip(get_ip(host))
if ip and ip.iptype() == 'PUBLIC':
if ip and (ip.iptype() == 'PUBLIC' or ip.version() == 6):
return True
return False