cmd/cli: ensure extra split rule is always written

Otherwise, the rule may not be added if ctrld does not run in cd mode.
This commit is contained in:
Cuong Manh Le
2024-11-11 18:47:14 +07:00
committed by Cuong Manh Le
parent c654398981
commit da91aabc35
4 changed files with 11 additions and 6 deletions
+1
View File
@@ -209,6 +209,7 @@ func (p *prog) runWait() {
continue
}
addExtraSplitDnsRule(newCfg)
if err := writeConfigFile(newCfg); err != nil {
logger.Err(err).Msg("could not write new config")
}