Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix switch condition in Proxy listeners setup #32895

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

AntonAM
Copy link
Contributor

@AntonAM AntonAM commented Oct 3, 2023

This PR fixes switch condition in setupProxyListeners() - it was an error introduced by proxy_protocol changes (#31622). Original condition looked like case cfg.Proxy.EnableProxyProtocol && !cfg.Proxy.DisableWebService && !cfg.Proxy.DisableTLS: - so we used this branch if PROXY protocol was enabled, but now it's taken when PROXY protocol is switched off as well. It seems that mistake was not that damaging and in most cases we ended up with same listeners setup, since we still provided correct PROXYProtocolMode to multiplexer and it was off when required. Here we restore original default switch flow for unspecified proxy_protocol setting.

@AntonAM AntonAM enabled auto-merge October 4, 2023 15:27
@AntonAM AntonAM force-pushed the anton/fix-proxy-listeners-setup branch from 89f0e8c to 420b00b Compare October 4, 2023 15:27
@AntonAM AntonAM added this pull request to the merge queue Oct 4, 2023
Merged via the queue into master with commit 4c30082 Oct 4, 2023
26 checks passed
@AntonAM AntonAM deleted the anton/fix-proxy-listeners-setup branch October 4, 2023 16:01
@public-teleport-github-review-bot

@AntonAM See the table below for backport results.

Branch Result
branch/v14 Create PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants