Browse Source

fix IPv6 detect

dev
BreakWa11 9 years ago
parent
commit
443c4f35c2
  1. 2
      shadowsocks/asyncdns.py

2
shadowsocks/asyncdns.py

@ -81,7 +81,7 @@ def detect_ipv6_supprot():
if 'has_ipv6' in dir(socket):
try:
s = socket.socket(socket.AF_INET6, socket.SOCK_DGRAM)
s.connect(('ipv6.google.com', 0))
s.connect(('::1', 0))
print('IPv6 support')
return True
except:

Loading…
Cancel
Save