mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-28 19:11:57 +08:00
remove wgkey during cleanup
This commit is contained in:
@@ -1132,6 +1132,12 @@ func WipeLocal(network string) error{
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
}
|
||||
|
||||
err = os.Remove(home + "/wgkey-" + network)
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
}
|
||||
|
||||
ipExec, err := exec.LookPath("ip")
|
||||
|
||||
if ifacename != "" {
|
||||
|
||||
Reference in New Issue
Block a user