diff --git a/cmd/cli/prog.go b/cmd/cli/prog.go index 239b044..34cdc45 100644 --- a/cmd/cli/prog.go +++ b/cmd/cli/prog.go @@ -538,14 +538,10 @@ func (p *prog) setDNS() { // dnsWatchdog watches for DNS changes on Darwin and Windows then re-applying ctrld's settings. // This is only works when deactivation pin set. func (p *prog) dnsWatchdog(iface *net.Interface, nameservers []string, allIfaces bool) { - switch runtime.GOOS { - case "darwin", "windows": - default: - return - } - if deactivationPinNotSet() { + if !requiredMultiNICsConfig() { return } + p.dnsWatchDogOnce.Do(func() { mainLog.Load().Debug().Msg("start DNS settings watchdog") ns := nameservers