Skip to content

Commit

Permalink
compatible to newer shadowsocks version
Browse files Browse the repository at this point in the history
  • Loading branch information
alviezhang committed Jun 27, 2015
1 parent d9afd17 commit ca57f46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chinadns/dnsrelay.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit ca57f46

Please sign in to comment.