support sspanelv3 node info & logs

This commit is contained in:
BreakWa11 2016-07-15 19:16:02 +08:00
parent b812ab10bf
commit 783267dba0
3 changed files with 98 additions and 13 deletions

View file

@ -3,9 +3,9 @@ from configloader import load_config, get_config
def getKeys():
key_list = ['port', 'u', 'd', 'transfer_enable', 'passwd', 'enable' ]
if get_config().API_INTERFACE == 'sspanelv3':
key_list += ['method']
key_list += ['id', 'method']
elif get_config().API_INTERFACE == 'sspanelv3ssr':
key_list += ['method', 'obfs', 'protocol']
key_list += ['id', 'method', 'obfs', 'protocol']
return key_list
#return key_list + ['plan'] # append the column name 'plan'