chore: 移除 daemon 模式

This commit is contained in:
Mmx233
2023-06-01 18:26:09 +08:00
parent 874eeddf96
commit 6c60a52d4e
10 changed files with 7 additions and 133 deletions

View File

@@ -7,10 +7,6 @@ import (
var Flags struct {
//配置文件路径
Path string
//daemon模式内置标记
RunningDaemon bool
//强制daemon
Daemon bool
Interface string
}
@@ -18,7 +14,5 @@ var Flags struct {
func initFlags() {
flag.StringVar(&Flags.Path, "config", "Config.yaml", "config path")
flag.StringVar(&Flags.Interface, "interface", "", "specify the eth name")
flag.BoolVar(&Flags.RunningDaemon, "running-daemon", false, "")
flag.BoolVar(&Flags.Daemon, "daemon", false, "")
flag.Parse()
}