mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-07-16 13:17:19 +02:00
all: initial support for setup linux router
Wiring code to configure router when running ctrld. Future commits will add implementation for each supported platforms.
This commit is contained in:
committed by
Cuong Manh Le
parent
0043fdf859
commit
4b6a976747
+10
-6
@@ -26,18 +26,22 @@ var (
|
||||
cacheSize int
|
||||
cfg ctrld.Config
|
||||
verbose int
|
||||
cdUID string
|
||||
iface string
|
||||
ifaceStartStop string
|
||||
onRouter bool
|
||||
|
||||
rootLogger = zerolog.New(io.Discard)
|
||||
mainLog = rootLogger
|
||||
|
||||
cdUID string
|
||||
iface string
|
||||
ifaceStartStop string
|
||||
mainLog = zerolog.New(io.Discard)
|
||||
)
|
||||
|
||||
func main() {
|
||||
ctrld.InitConfig(v, "ctrld")
|
||||
initCLI()
|
||||
initRouterCLI()
|
||||
if err := rootCmd.Execute(); err != nil {
|
||||
stderrMsg(err.Error())
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
|
||||
func normalizeLogFilePath(logFilePath string) string {
|
||||
|
||||
Reference in New Issue
Block a user