Skip to content

Commit

Permalink
Merge pull request #34 from d2army/ian-yap/fix-config-host-upstream-host
Browse files Browse the repository at this point in the history
Fix the upstreamConfigHost change when reestablishing the listener
  • Loading branch information
d2army authored Jan 25, 2024
2 parents 20e5a31 + 69b6f16 commit 01ec072
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ func (p *Proxy) healthCheckSingleConnection(key string, wg *sync.WaitGroup) {
if !healthy {
p.log.Warn("Server failed to respond; Deleting the listener", zap.String("server", key))
p.removeListener(key)
if key == p.localConfigHost {
if key == p.upstreamConfigHost {
// add the upstream config host back; we always need to have that minimally
// but hopefully this time, the connection is re-established to the right IP
p.ensureListenerForUpstream(key, "")
Expand Down

0 comments on commit 01ec072

Please sign in to comment.