fix multiple ports

This commit is contained in:
clowwindy 2014-09-20 19:57:55 +08:00
parent f677c8152d
commit c668ddbc1b

View file

@ -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 = []