mirror of
https://github.com/gravitl/netmaker.git
synced 2026-04-22 16:07:11 +08:00
Update logic/peers.go
Co-authored-by: tenki-reviewer[bot] <262613592+tenki-reviewer[bot]@users.noreply.github.com>
This commit is contained in:
+1
-1
@@ -845,7 +845,7 @@ func deduplicateEgressRoutes(routes []models.EgressNetworkRoutes) []models.Egres
|
||||
seen := make(map[string]struct{}, len(routes))
|
||||
result := make([]models.EgressNetworkRoutes, 0, len(routes))
|
||||
for _, r := range routes {
|
||||
key := r.PeerKey
|
||||
key := r.PeerKey + "|" + r.Network
|
||||
if _, exists := seen[key]; !exists {
|
||||
seen[key] = struct{}{}
|
||||
result = append(result, r)
|
||||
|
||||
Reference in New Issue
Block a user