Merge pull request #17 from danohn/main

Fix UDP port conflict during NAT holepunching on macOS

Former-commit-id: 456c66e6f2
This commit is contained in:
Owen Schwartz
2025-08-30 15:15:36 -07:00
committed by GitHub

View File

@@ -537,7 +537,8 @@ func runOlmMainWithArgs(ctx context.Context, args []string) {
close(stopHolepunch) close(stopHolepunch)
// wait 10 milliseconds to ensure the previous connection is closed // wait 10 milliseconds to ensure the previous connection is closed
time.Sleep(10 * time.Millisecond) logger.Debug("Waiting 500 milliseconds to ensure previous connection is closed")
time.Sleep(500 * time.Millisecond)
// if there is an existing tunnel then close it // if there is an existing tunnel then close it
if dev != nil { if dev != nil {