cmd/cli: write auto split rule for AD to config file

This commit is contained in:
Cuong Manh Le
2024-09-24 15:09:05 +07:00
committed by Cuong Manh Le
parent 4befd33866
commit ce353cd4d9
4 changed files with 15 additions and 13 deletions

View File

@@ -1383,6 +1383,7 @@ func run(appCallback *AppCallback, stopCh chan struct{}) {
}
func writeConfigFile(cfg *ctrld.Config) error {
addExtraSplitDnsRule(cfg)
if cfu := v.ConfigFileUsed(); cfu != "" {
defaultConfigFile = cfu
} else if configPath != "" {