From 7f26f43f883fa8a0791a38ba71fc01e193902fb1 Mon Sep 17 00:00:00 2001 From: BreakWa11 Date: Sun, 12 Jun 2016 18:48:07 +0800 Subject: [PATCH] allow custom obfs & protocol --- apiconfig.py | 2 +- switchrule.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apiconfig.py b/apiconfig.py index 4713db5..c65577a 100644 --- a/apiconfig.py +++ b/apiconfig.py @@ -1,7 +1,7 @@ # Config TRANSFER_MUL = 1.0 NODE_ID = 1 -API_INTERFACE = 'sspanelv2' #sspanelv2, sspanelv3, muapiv2 +API_INTERFACE = 'sspanelv2' #sspanelv2, sspanelv3, sspanelv3ssr, muapiv2(not support) # Mysql MYSQL_HOST = 'mdss.mengsky.net' diff --git a/switchrule.py b/switchrule.py index 5785850..e102c63 100644 --- a/switchrule.py +++ b/switchrule.py @@ -5,6 +5,8 @@ def getKeys(): key_list = ['port', 'u', 'd', 'transfer_enable', 'passwd', 'enable' ] if get_config().API_INTERFACE == 'sspanelv3': key_list += ['method'] + elif get_config().API_INTERFACE == 'sspanelv3ssr': + key_list += ['method', 'obfs', 'protocol'] return key_list #return key_list + ['plan'] # append the column name 'plan'