Remove redundant config field

pull/71/head
Qian Wang 5 years ago
parent e1c879a478
commit 0f3b2232ab

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

@ -13,13 +13,12 @@ import (
)
type rawConfig struct {
ProxyBook map[string]string
RedirAddr string
PrivateKey string
AdminUID string
DatabasePath string
BackupDirPath string
CncMode bool
ProxyBook map[string]string
RedirAddr string
PrivateKey string
AdminUID string
DatabasePath string
CncMode bool
}
// State type stores the global state of the program
@ -72,6 +71,7 @@ func (sta *State) ParseConfig(conf string) (err error) {
}
if preParse.CncMode {
//TODO: implement command & control mode
} else {
manager, err := MakeLocalManager(preParse.DatabasePath)

Loading…
Cancel
Save