From b344bc236b5a28ada617e462b3a4f8dcc8fb595f Mon Sep 17 00:00:00 2001 From: BreakWa11 Date: Wed, 22 Jun 2016 17:37:51 +0800 Subject: [PATCH] fix bytes --- shadowsocks/asyncdns.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shadowsocks/asyncdns.py b/shadowsocks/asyncdns.py index 3273c36..3f92e62 100644 --- a/shadowsocks/asyncdns.py +++ b/shadowsocks/asyncdns.py @@ -289,7 +289,7 @@ class DNSResolver(object): for line in content: line = line.strip() if line: - parts = line.split(' ', 1) + parts = line.split(b' ', 1) if len(parts) >= 2: server = parts[0] port = int(parts[1])