From d1f64de6b4003db7b2b9a5166ec5a47c397fe6a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=B4=E5=A8=83=E9=85=B1?= Date: Sat, 8 Oct 2016 11:21:30 +0800 Subject: [PATCH] -P => -O --- shadowsocks/shell.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shadowsocks/shell.py b/shadowsocks/shell.py index 64fbef2..44bdb63 100644 --- a/shadowsocks/shell.py +++ b/shadowsocks/shell.py @@ -136,11 +136,11 @@ def get_config(is_local): logging.basicConfig(level=logging.INFO, format='%(levelname)-s: %(message)s') if is_local: - shortopts = 'hd:s:b:p:k:l:m:P:o:G:g:c:t:vq' + shortopts = 'hd:s:b:p:k:l:m:O:o:G:g:c:t:vq' longopts = ['help', 'fast-open', 'pid-file=', 'log-file=', 'user=', 'version'] else: - shortopts = 'hd:s:p:k:m:P:o:G:g:c:t:vq' + shortopts = 'hd:s:p:k:m:O:o:G:g:c:t:vq' longopts = ['help', 'fast-open', 'pid-file=', 'log-file=', 'workers=', 'forbidden-ip=', 'user=', 'manager-address=', 'version'] try: @@ -174,7 +174,7 @@ def get_config(is_local): config['server'] = to_str(value) elif key == '-m': config['method'] = to_str(value) - elif key == '-P': + elif key == '-O': config['protocol'] = to_str(value) elif key == '-o': config['obfs'] = to_str(value)