Skip to content

Commit

Permalink
Fix switch condition in Proxy listeners setup (#32895)
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonAM committed Oct 4, 2023
1 parent 24ebac9 commit 4c30082
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4c30082

Please sign in to comment.