Improve handling of allowed ips

Former-commit-id: 1a2a2e5453
This commit is contained in:
Owen
2025-12-03 15:50:00 -05:00
parent 4b8b281d5b
commit ba41602e4b
3 changed files with 63 additions and 11 deletions

View File

@@ -786,12 +786,7 @@ func StartTunnel(config TunnelConfig) {
logger.Debug("Exit node %s already in holepunch rotation", exitNode.Endpoint)
}
// Start holepunching if not already running
if !holePunchManager.IsRunning() {
if err := holePunchManager.Start(); err != nil {
logger.Error("Failed to start holepunch manager: %v", err)
}
}
holePunchManager.ResetInterval() // start sending immediately again so we fill in the endpoint on the cloud
}
// Send handshake acknowledgment back to server with retry