mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-05 08:47:35 +08:00
remove dns entries in /etc/hosts on leave/uninstall
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user