From ca57f46a0cd63fca1068d0c85a8379876b90f09f Mon Sep 17 00:00:00 2001 From: alvie Date: Sat, 27 Jun 2015 08:17:53 +0800 Subject: [PATCH] compatible to newer shadowsocks version --- chinadns/dnsrelay.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chinadns/dnsrelay.py b/chinadns/dnsrelay.py index ffeb719..a7c4222 100644 --- a/chinadns/dnsrelay.py +++ b/chinadns/dnsrelay.py @@ -35,7 +35,7 @@ sys.exit(1) import argparse -from shadowsocks import eventloop, asyncdns, lru_cache +from shadowsocks import eventloop, asyncdns, lru_cache, common BUF_SIZE = 16384 @@ -92,7 +92,7 @@ def _parse_hosts(self): parts = line.split() if len(parts) >= 2: ip = parts[0] - if asyncdns.is_ip(ip): + if common.is_ip(ip): for i in xrange(1, len(parts)): hostname = parts[i] if hostname: