mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-04 19:05:27 +08:00
remove dns entries in /etc/hosts on leave/uninstall
This commit is contained in:
parent
d2d8f47346
commit
f440b5cc07
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue