2
0
Эх сурвалжийг харах

add egress route back to allowedip list if relayed is egressGW

Max Ma 1 жил өмнө
parent
commit
4a27d7dc47
1 өөрчлөгдсөн 3 нэмэгдсэн , 0 устгасан
  1. 3 0
      pro/logic/failover.go

+ 3 - 0
pro/logic/failover.go

@@ -140,6 +140,9 @@ func GetFailOverPeerIps(peer, node *models.Node) []net.IPNet {
 						}
 						allowedips = append(allowedips, allowed)
 					}
+					if rNode.IsEgressGateway {
+						allowedips = append(allowedips, logic.GetEgressIPs(&rNode)...)
+					}
 				}
 			}
 		}