mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-08 10:11:08 +08:00
NET-1224:add egressGW ip for setroutes (#2933)
* add egressGW ip for setroutes * fix peer endpoint selection --------- Co-authored-by: abhishek9686 <abhi281342@gmail.com>
This commit is contained in:
@@ -475,6 +475,9 @@ func getExtpeersExtraRoutes(network string) (egressRoutes []models.EgressNetwork
|
||||
return
|
||||
}
|
||||
for _, extPeer := range extPeers {
|
||||
if len(extPeer.ExtraAllowedIPs) == 0 {
|
||||
continue
|
||||
}
|
||||
egressRoutes = append(egressRoutes, getExtPeerEgressRoute(extPeer)...)
|
||||
}
|
||||
return
|
||||
|
Reference in New Issue
Block a user