From 5a05312189a4e94b454d225895b5e1709c1b9fc3 Mon Sep 17 00:00:00 2001 From: Shell Chen Date: Wed, 12 Oct 2016 00:31:41 +1100 Subject: [PATCH] Fix method on manager's add command (#578) (#614) --- shadowsocks/manager.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shadowsocks/manager.py b/shadowsocks/manager.py index bba542e..f3a7b77 100644 --- a/shadowsocks/manager.py +++ b/shadowsocks/manager.py @@ -141,6 +141,8 @@ class Manager(object): command, config_json = parts try: config = shell.parse_json_in_str(config_json) + if 'method' in config: + config['method'] = common.to_str(config['method']) return command, config except Exception as e: logging.error(e)