mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-05 08:47:35 +08:00
remove wgkey during cleanup
This commit is contained in:
@@ -1128,10 +1128,16 @@ func WipeLocal(network string) error{
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
}
|
||||
err = os.Remove(home + "/nettoken-"+network)
|
||||
err = os.Remove(home + "/nettoken-" + network)
|
||||
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