Skip to content

Commit ca57f46

Browse files
committed
compatible to newer shadowsocks version
1 parent d9afd17 commit ca57f46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

chinadns/dnsrelay.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
sys.exit(1)
3636

3737
import argparse
38-
from shadowsocks import eventloop, asyncdns, lru_cache
38+
from shadowsocks import eventloop, asyncdns, lru_cache, common
3939

4040

4141
BUF_SIZE = 16384
@@ -92,7 +92,7 @@ def _parse_hosts(self):
9292
parts = line.split()
9393
if len(parts) >= 2:
9494
ip = parts[0]
95-
if asyncdns.is_ip(ip):
95+
if common.is_ip(ip):
9696
for i in xrange(1, len(parts)):
9797
hostname = parts[i]
9898
if hostname:

0 commit comments

Comments
 (0)