This commit is contained in:
Konstantin Akimov 2024-12-17 04:31:49 +00:00 committed by GitHub
commit b3a5fcd8c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -146,12 +146,10 @@ def test_ipv6_local():
'''
# By using SOCK_DGRAM this will not actually make a connection, but it will
# fail if there is no route to IPv6 localhost.
return False
# TODO: disabled until amazon ipv6 issues are resolved
# have_ipv6 = True
# try:
# s = socket.socket(socket.AF_INET6, socket.SOCK_DGRAM)
# s.connect(('::1', 1))
# except socket.error:
# have_ipv6 = False
# return have_ipv6
have_ipv6 = True
try:
s = socket.socket(socket.AF_INET6, socket.SOCK_DGRAM)
s.connect(('::1', 1))
except socket.error:
have_ipv6 = False
return have_ipv6