load 'user-config.json' first
set default obfs plugin 'tls1.0_session_auth_compatible'
This commit is contained in:
parent
459b0c7004
commit
68a77ddc70
2 changed files with 8 additions and 2 deletions
|
@ -9,7 +9,7 @@
|
|||
"method": "aes-256-cfb",
|
||||
"protocol": "auth_sha1_compatible",
|
||||
"protocol_param": "",
|
||||
"obfs": "http_simple_compatible",
|
||||
"obfs": "tls1.0_session_auth_compatible",
|
||||
"obfs_param": "",
|
||||
"redirect": "",
|
||||
"dns_ipv6": false,
|
||||
|
|
|
@ -62,8 +62,14 @@ def print_shadowsocks():
|
|||
pass
|
||||
print('Shadowsocks %s' % version)
|
||||
|
||||
|
||||
def find_config():
|
||||
config_path = 'user-config.json'
|
||||
if os.path.exists(config_path):
|
||||
return config_path
|
||||
config_path = os.path.join(os.path.dirname(__file__), '../', 'user-config.json')
|
||||
if os.path.exists(config_path):
|
||||
return config_path
|
||||
|
||||
config_path = 'config.json'
|
||||
if os.path.exists(config_path):
|
||||
return config_path
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue