upstream: use network case-mapping in updateMonitor

We were using the downstream case-mapping.
This commit is contained in:
Simon Ser 2022-03-08 21:27:43 +01:00
parent 2060ae05cf
commit 9a79c66921
1 changed files with 2 additions and 1 deletions

View File

@ -2133,7 +2133,8 @@ func (uc *upstreamConn) updateMonitor() {
var addList []string var addList []string
seen := make(map[string]struct{}) seen := make(map[string]struct{})
uc.forEachDownstream(func(dc *downstreamConn) { uc.forEachDownstream(func(dc *downstreamConn) {
for targetCM := range dc.monitored.innerMap { for _, entry := range dc.monitored.innerMap {
targetCM := uc.network.casemap(entry.originalKey)
if !uc.monitored.Has(targetCM) { if !uc.monitored.Has(targetCM) {
if _, ok := add[targetCM]; !ok { if _, ok := add[targetCM]; !ok {
addList = append(addList, targetCM) addList = append(addList, targetCM)