Skip to content

Commit

Permalink
load 'user-config.json' first
Browse files Browse the repository at this point in the history
set default obfs plugin 'tls1.0_session_auth_compatible'
  • Loading branch information
breakwa11 committed Dec 19, 2015
1 parent 459b0c7 commit 68a77dd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
8 changes: 7 additions & 1 deletion shadowsocks/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 68a77dd

Please sign in to comment.