From 420b00ba97abc9bb2d26b1d436e7908e73ecc353 Mon Sep 17 00:00:00 2001 From: Anton Miniailo Date: Tue, 3 Oct 2023 04:04:34 -0400 Subject: [PATCH] Fix switch condition in Proxy listeners setup --- lib/service/service.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/service/service.go b/lib/service/service.go index a9e3d5123fa9b..a6679ed808c95 100644 --- a/lib/service/service.go +++ b/lib/service/service.go @@ -3604,8 +3604,8 @@ func (process *TeleportProcess) setupProxyListeners(networkingConfig types.Clust } }() return &listeners, nil - case cfg.Proxy.PROXYProtocolMode != multiplexer.PROXYProtocolUnspecified && !cfg.Proxy.DisableWebService && !cfg.Proxy.DisableTLS: - process.log.Debugf("Setup Proxy: Proxy protocol is enabled for web service, multiplexing is on.") + case cfg.Proxy.PROXYProtocolMode != multiplexer.PROXYProtocolOff && !cfg.Proxy.DisableWebService && !cfg.Proxy.DisableTLS: + process.log.Debug("Setup Proxy: PROXY protocol is enabled for web service, multiplexing is on.") listener, err := process.importOrCreateListener(ListenerProxyWeb, cfg.Proxy.WebAddr.Addr) if err != nil { return nil, trace.Wrap(err)