Holepunch to the right endpoint

This commit is contained in:
Owen
2025-07-21 17:04:29 -07:00
parent 85a8a737e8
commit b58e7c9fad
2 changed files with 3 additions and 2 deletions

View File

@@ -234,6 +234,8 @@ func main() {
}
gerbilServerPubKey = holePunchData.ServerPubKey
go keepSendingUDPHolePunch(holePunchData.Endpoint, id, sourcePort)
})
connectTimes := 0
@@ -620,8 +622,6 @@ func main() {
}
defer olm.Close()
go keepSendingUDPHolePunch(endpoint, id, sourcePort)
// Wait for interrupt signal
sigCh := make(chan os.Signal, 1)
signal.Notify(sigCh, syscall.SIGINT, syscall.SIGTERM)