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

This commit is contained in:
Cuong Manh Le authored and Cuong Manh Le committed 2024-09-30 18:21:11 +07:00
1 parent 4befd33866
commit ce353cd4d9
4 files changed
+15 -13

No files matched your search

+1
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 != "" {