cmd/cli: skip router setup with "ctrld service start"

Either do magic stuff and make things work automatically (normal users),
or don't do any of it and just run ctrld as a service (power users).
This commit is contained in:
Cuong Manh Le
2023-11-16 20:58:41 +07:00
committed by Cuong Manh Le
parent cd9c750884
commit 494d8be777
2 changed files with 52 additions and 34 deletions
+22 -20
View File
@@ -14,26 +14,28 @@ import (
)
var (
configPath string
configBase64 string
daemon bool
listenAddress string
primaryUpstream string
secondaryUpstream string
domains []string
logPath string
homedir string
cacheSize int
cfg ctrld.Config
verbose int
silent bool
cdUID string
cdOrg string
cdDev bool
iface string
ifaceStartStop string
nextdns string
cdUpstreamProto string
configPath string
configBase64 string
daemon bool
listenAddress string
primaryUpstream string
secondaryUpstream string
domains []string
logPath string
homedir string
cacheSize int
cfg ctrld.Config
verbose int
silent bool
cdUID string
cdOrg string
cdDev bool
iface string
ifaceStartStop string
nextdns string
cdUpstreamProto string
setupRouter bool
setupRouterStartStop bool
mainLog atomic.Pointer[zerolog.Logger]
consoleWriter zerolog.ConsoleWriter