cmd/cli: ignore un-usable interfaces on darwin when resetDNS

This commit is contained in:
Cuong Manh Le
2024-03-22 16:08:01 +07:00
committed by Cuong Manh Le
parent 64bcd2f00d
commit 87513cba6d
5 changed files with 28 additions and 1 deletions
+1 -1
View File
@@ -520,7 +520,7 @@ func (p *prog) resetDNS() {
}
logger.Debug().Msg("Restoring DNS successfully")
if allIfaces {
withEachPhysicalInterfaces(netIface.Name, "reset DNS", resetDNS)
withEachPhysicalInterfaces(netIface.Name, "reset DNS", resetDnsIgnoreUnusableInterface)
}
}