[NET-5788] Fix needed for JWTAuth in Consul Enterprise (#19038)

change needed for fix in consul-enterprise
pull/19047/head
sarahalsmiller 1 year ago committed by GitHub
parent 2467660ab2
commit 9addd9ed7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -276,9 +276,11 @@ func getReadyListeners(cfgSnap *proxycfg.ConfigSnapshot) map[string]readyListene
continue
}
routeKey := l.Name + routeRef.String()
for _, upstream := range routeUpstreamsForListener {
// Insert or update readyListener for the listener to include this upstream
r, ok := ready[l.Name]
r, ok := ready[routeKey]
if !ok {
r = readyListener{
listenerKey: listenerKey,
@ -288,7 +290,7 @@ func getReadyListeners(cfgSnap *proxycfg.ConfigSnapshot) map[string]readyListene
}
}
r.upstreams = append(r.upstreams, upstream)
ready[l.Name] = r
ready[routeKey] = r
}
}
}

Loading…
Cancel
Save