Remove redundant config field

This commit is contained in:
Qian Wang 2019-07-31 14:44:34 +01:00
parent e1c879a478
commit 0f3b2232ab
2 changed files with 8 additions and 9 deletions

View File

@ -7,6 +7,5 @@
"RedirAddr":"204.79.197.200:443", "RedirAddr":"204.79.197.200:443",
"PrivateKey":"EN5aPEpNBO+vw+BtFQY2OnK9bQU7rvEj5qmnmgwEtUc=", "PrivateKey":"EN5aPEpNBO+vw+BtFQY2OnK9bQU7rvEj5qmnmgwEtUc=",
"AdminUID":"5nneblJy6lniPJfr81LuYQ==", "AdminUID":"5nneblJy6lniPJfr81LuYQ==",
"DatabasePath":"userinfo.db", "DatabasePath": "userinfo.db"
"BackupDirPath":""
} }

View File

@ -18,7 +18,6 @@ type rawConfig struct {
PrivateKey string PrivateKey string
AdminUID string AdminUID string
DatabasePath string DatabasePath string
BackupDirPath string
CncMode bool CncMode bool
} }
@ -72,6 +71,7 @@ func (sta *State) ParseConfig(conf string) (err error) {
} }
if preParse.CncMode { if preParse.CncMode {
//TODO: implement command & control mode
} else { } else {
manager, err := MakeLocalManager(preParse.DatabasePath) manager, err := MakeLocalManager(preParse.DatabasePath)