Browse Source

fix host_list type

dev
BreakWa11 9 years ago
parent
commit
82df4524d1
  1. 3
      shadowsocks/tcprelay.py

3
shadowsocks/tcprelay.py

@ -354,7 +354,8 @@ class TCPRelayHandler(object):
host_port = []
match_port = False
if type(host_list) == list:
if type(host_list) != list:
host_list = [host_list]
for host in host_list:
items = common.to_str(host).rsplit(':', 1)
if len(items) > 1:

Loading…
Cancel
Save