添加混淆插件参数"-o"
This commit is contained in:
parent
96a9a25eaa
commit
6d963cea44
1 changed files with 6 additions and 2 deletions
|
@ -130,11 +130,11 @@ def get_config(is_local):
|
||||||
logging.basicConfig(level=logging.INFO,
|
logging.basicConfig(level=logging.INFO,
|
||||||
format='%(levelname)-s: %(message)s')
|
format='%(levelname)-s: %(message)s')
|
||||||
if is_local:
|
if is_local:
|
||||||
shortopts = 'hd:s:b:p:k:l:m:c:t:vq'
|
shortopts = 'hd:s:b:p:k:l:m:o:c:t:vq'
|
||||||
longopts = ['help', 'fast-open', 'pid-file=', 'log-file=', 'user=',
|
longopts = ['help', 'fast-open', 'pid-file=', 'log-file=', 'user=',
|
||||||
'version']
|
'version']
|
||||||
else:
|
else:
|
||||||
shortopts = 'hd:s:p:k:m:c:t:vq'
|
shortopts = 'hd:s:p:k:m:o:c:t:vq'
|
||||||
longopts = ['help', 'fast-open', 'pid-file=', 'log-file=', 'workers=',
|
longopts = ['help', 'fast-open', 'pid-file=', 'log-file=', 'workers=',
|
||||||
'forbidden-ip=', 'user=', 'manager-address=', 'version']
|
'forbidden-ip=', 'user=', 'manager-address=', 'version']
|
||||||
try:
|
try:
|
||||||
|
@ -168,6 +168,8 @@ def get_config(is_local):
|
||||||
config['server'] = to_str(value)
|
config['server'] = to_str(value)
|
||||||
elif key == '-m':
|
elif key == '-m':
|
||||||
config['method'] = to_str(value)
|
config['method'] = to_str(value)
|
||||||
|
elif key == '-o':
|
||||||
|
config['obfs'] = to_str(value)
|
||||||
elif key == '-b':
|
elif key == '-b':
|
||||||
config['local_address'] = to_str(value)
|
config['local_address'] = to_str(value)
|
||||||
elif key == '-v':
|
elif key == '-v':
|
||||||
|
@ -286,6 +288,7 @@ Proxy options:
|
||||||
-l LOCAL_PORT local port, default: 1080
|
-l LOCAL_PORT local port, default: 1080
|
||||||
-k PASSWORD password
|
-k PASSWORD password
|
||||||
-m METHOD encryption method, default: aes-256-cfb
|
-m METHOD encryption method, default: aes-256-cfb
|
||||||
|
-o OBFS obfsplugin, default: http_simple
|
||||||
-t TIMEOUT timeout in seconds, default: 300
|
-t TIMEOUT timeout in seconds, default: 300
|
||||||
--fast-open use TCP_FASTOPEN, requires Linux 3.7+
|
--fast-open use TCP_FASTOPEN, requires Linux 3.7+
|
||||||
|
|
||||||
|
@ -315,6 +318,7 @@ Proxy options:
|
||||||
-p SERVER_PORT server port, default: 8388
|
-p SERVER_PORT server port, default: 8388
|
||||||
-k PASSWORD password
|
-k PASSWORD password
|
||||||
-m METHOD encryption method, default: aes-256-cfb
|
-m METHOD encryption method, default: aes-256-cfb
|
||||||
|
-o OBFS obfsplugin, default: http_simple
|
||||||
-t TIMEOUT timeout in seconds, default: 300
|
-t TIMEOUT timeout in seconds, default: 300
|
||||||
--fast-open use TCP_FASTOPEN, requires Linux 3.7+
|
--fast-open use TCP_FASTOPEN, requires Linux 3.7+
|
||||||
--workers WORKERS number of workers, available on Unix/Linux
|
--workers WORKERS number of workers, available on Unix/Linux
|
||||||
|
|
Loading…
Add table
Reference in a new issue