all: add CLI flags for no config start

This commit adds the ability to start `ctrld` without config file. All
necessary information can be provided via command line flags, either in
base64 encoded config or launch arguments.
This commit is contained in:
Cuong Manh Le
2022-12-21 19:08:19 +07:00
committed by Cuong Manh Le
parent 30fefe7ab9
commit b93970ccfd
6 changed files with 205 additions and 30 deletions
+10 -4
View File
@@ -12,10 +12,16 @@ import (
)
var (
configPath string
daemon bool
cfg ctrld.Config
verbose int
configPath string
configBase64 string
daemon bool
listenAddress string
primaryUpstream string
secondaryUpstream string
domains []string
logPath string
cfg ctrld.Config
verbose int
bootstrapDNS = "76.76.2.0"