From 5c274a1bc79911f347bfe75e31ed1194f31ac8e0 Mon Sep 17 00:00:00 2001 From: clowwindy Date: Sun, 8 Jun 2014 16:38:30 +0800 Subject: [PATCH] update dns --- shadowsocks/asyncdns.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shadowsocks/asyncdns.py b/shadowsocks/asyncdns.py index 02311d2..5f9f91b 100644 --- a/shadowsocks/asyncdns.py +++ b/shadowsocks/asyncdns.py @@ -296,6 +296,7 @@ class DNSResolver(object): if self._loop: raise Exception('already add to loop') self._loop = loop + # TODO when dns server is IPv6 self._sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.SOL_UDP) self._sock.setblocking(False) @@ -339,6 +340,7 @@ class DNSResolver(object): logging.error('dns socket err') self._loop.remove(self._sock) self._sock.close() + # TODO when dns server is IPv6 self._sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.SOL_UDP) self._sock.setblocking(False)