mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-05 08:47:35 +08:00
added a cleanup
This commit is contained in:
@@ -253,6 +253,9 @@ func WipeLocal(network string) error {
|
||||
if ncutils.FileExists(home + "secret-" + network) {
|
||||
_ = os.Remove(home + "secret-" + network)
|
||||
}
|
||||
if ncutils.FileExists(home + "traffic-" + network) {
|
||||
_ = os.Remove(home + "traffic-" + network)
|
||||
}
|
||||
if ncutils.FileExists(home + "wgkey-" + network) {
|
||||
_ = os.Remove(home + "wgkey-" + network)
|
||||
}
|
||||
|
Reference in New Issue
Block a user