Handle order of opertions of hole punch better

This commit is contained in:
Owen
2025-04-22 22:11:37 -04:00
parent 6a146ed371
commit 175718a48e
2 changed files with 74 additions and 31 deletions

View File

@@ -403,7 +403,7 @@ func main() {
if generateAndSaveKeyTo == "" {
flag.StringVar(&generateAndSaveKeyTo, "generateAndSaveKeyTo", "/tmp/newtkey", "Path to save generated private key")
}
flag.BoolVar(&rm, "rm", true, "Remove the WireGuard interface")
flag.BoolVar(&rm, "rm", false, "Remove the WireGuard interface")
flag.BoolVar(&acceptClients, "accept-clients", false, "Accept clients on the WireGuard interface")
// do a --version check