Merge branch 'main' into dev

This commit is contained in:
Owen
2025-08-13 14:56:02 -07:00
5 changed files with 13 additions and 8 deletions

View File

@@ -487,6 +487,11 @@ persistent_keepalive_interval=5`, fixKey(privateKey.String()), fixKey(wgData.Pub
// Close the WireGuard device and TUN
closeWgTunnel()
if stopFunc != nil {
stopFunc() // stop the ws from sending more requests
stopFunc = nil // reset stopFunc to nil to avoid double stopping
}
// Mark as disconnected
connected = false