remove dns entries in /etc/hosts on leave/uninstall

This commit is contained in:
Matthew R. Kasun 2022-05-16 07:23:44 -04:00
parent d2d8f47346
commit f440b5cc07

View file

@ -304,6 +304,10 @@ func WipeLocal(network string) error {
log.Println(err.Error())
}
}
err = removeHostDNS(ifacename, ncutils.IsWindows())
if err != nil {
logger.Log(0, "failed to delete dns entries for", ifacename, err.Error())
}
return err
}