From 94d720bcb79154cc6055885f9e50db80b3b05a16 Mon Sep 17 00:00:00 2001 From: Akkariiin Date: Sat, 29 Jul 2017 05:05:17 +0800 Subject: [PATCH] fix read black_hostname_list from config black_hostname_list in config file format is like forbidden_port --- shadowsocks/shell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shadowsocks/shell.py b/shadowsocks/shell.py index 37bafef..78ba333 100755 --- a/shadowsocks/shell.py +++ b/shadowsocks/shell.py @@ -261,7 +261,7 @@ def get_config(is_local): config['server'] = to_str(config['server']) else: config['server'] = to_str(config.get('server', '0.0.0.0')) - config['black_hostname_list'] = config.get('black_hostname_list', []) + config['black_hostname_list'] = to_str(config.get('black_hostname_list', '')).split(',') try: config['forbidden_ip'] = \ IPNetwork(config.get('forbidden_ip', '127.0.0.0/8,::1/128'))