mirror of
https://github.com/e1732a364fed/v2ray_simple.git
synced 2025-12-24 13:27:56 +08:00
修订cmd,gui,apiServer代码
This commit is contained in:
@@ -44,6 +44,15 @@ type exitCmd struct {
|
||||
}
|
||||
|
||||
func init() {
|
||||
|
||||
flag.BoolVar(&download, "d", false, " automatically download required mmdb file")
|
||||
|
||||
//apiServer stuff
|
||||
|
||||
//defaultApiServerConf.SetupFlags()
|
||||
}
|
||||
|
||||
func initExitCmds() {
|
||||
for i, ec := range exitCmds {
|
||||
if ec.isStr {
|
||||
flag.StringVar(&exitCmds[i].strValue, ec.name, ec.defaultStringValue, ec.desc)
|
||||
@@ -54,11 +63,6 @@ func init() {
|
||||
}
|
||||
}
|
||||
|
||||
flag.BoolVar(&download, "d", false, " automatically download required mmdb file")
|
||||
|
||||
//apiServer stuff
|
||||
|
||||
//defaultApiServerConf.SetupFlags()
|
||||
}
|
||||
|
||||
// 运行一些 执行后立即退出程序的 命令
|
||||
|
||||
Reference in New Issue
Block a user