fix a ipv6 bug in mysql mode

This commit is contained in:
BreakWa11 2015-11-19 22:21:59 +08:00
parent 3930cfc726
commit 0504fb43cf
2 changed files with 5 additions and 2 deletions

View file

@ -52,6 +52,9 @@ class ServerPool(object):
self.config = shell.get_config(False)
shell.print_shadowsocks()
self.dns_resolver = asyncdns.DNSResolver()
if not self.config.get('dns_ipv6', False):
asyncdns.IPV6_CONNECTION_SUPPORT = False
self.mgr = asyncmgr.ServerMgr()
self.tcp_servers_pool = {}