fix: redirect servers bug

the key-value place for origin server and redirect server is wrong fix https://github.com/kubernetes/ingress-nginx/issues/2247
This commit is contained in:
oilbeater 2018-03-24 00:02:16 +08:00
parent 6e099c5f57
commit 9831814934

View file

@ -533,7 +533,7 @@ func (n *NGINXController) OnUpdate(ingressCfg ingress.Configuration) error {
}
}
if !found {
redirectServers[n] = srv.Hostname
redirectServers[srv.Hostname] = n
}
}
}