added a cleanup

This commit is contained in:
0xdcarns
2022-01-28 18:27:21 -05:00
parent 48d6d57f25
commit 19426fc3e1
3 changed files with 8 additions and 4 deletions

View File

@@ -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)
}