From c668ddbc1b37338c73ece403dcf56fb02ed2aa88 Mon Sep 17 00:00:00 2001 From: clowwindy Date: Sat, 20 Sep 2014 19:57:55 +0800 Subject: [PATCH] fix multiple ports --- shadowsocks/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shadowsocks/utils.py b/shadowsocks/utils.py index 252c564..fee4afc 100644 --- a/shadowsocks/utils.py +++ b/shadowsocks/utils.py @@ -186,7 +186,7 @@ def get_config(is_local): if 'local_port' in config: config['local_port'] = int(config['local_port']) - if 'server_port' in config: + if 'server_port' in config and type(config['server_port']) != list: config['server_port'] = int(config['server_port']) logging.getLogger('').handlers = []