Stabilize VPN farm WebSocket dataplane
This commit is contained in:
@@ -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 != "":
|
||||
|
||||
Reference in New Issue
Block a user