Stabilize VPN farm WebSocket dataplane

This commit is contained in:
2026-05-15 09:33:31 +03:00
parent 5f4ac89767
commit 2cb6005cd3
7 changed files with 68 additions and 14 deletions
@@ -5101,13 +5101,10 @@ func enrichVPNClientFabricRoute(item VPNClientConnection, preferredEntryNodeID,
preferredEntryNodeID = strings.TrimSpace(preferredEntryNodeID)
selectedEntry := selectPreferredNode(entryPool, preferredEntryNodeID)
selectedExit := ""
if item.ActiveLease != nil && item.ActiveLease.OwnerNodeID != "" {
selectedExit := selectPreferredNode(exitPool, preferredExitNodeID)
if selectedExit == "" && item.ActiveLease != nil && item.ActiveLease.OwnerNodeID != "" {
selectedExit = item.ActiveLease.OwnerNodeID
}
if selectedExit == "" {
selectedExit = selectPreferredNode(exitPool, preferredExitNodeID)
}
status := "waiting_for_entry_and_exit"
switch {
case selectedEntry != "" && selectedExit != "":