Merge pull request #81 from gravitl/bugfix_v0.2_portconflicts

Bugfix v0.2 portconflicts
This commit is contained in:
Alex 2021-04-07 09:54:42 -04:00 committed by GitHub
commit a4be6992dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1129,10 +1129,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 != "" {