From 443c4f35c21efd9fa532c05aafc3c9137decdf5f Mon Sep 17 00:00:00 2001 From: BreakWa11 Date: Mon, 14 Dec 2015 02:59:24 +0800 Subject: [PATCH] fix IPv6 detect --- shadowsocks/asyncdns.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shadowsocks/asyncdns.py b/shadowsocks/asyncdns.py index 50c62ba..cd8550a 100644 --- a/shadowsocks/asyncdns.py +++ b/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: