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

http: Add missing tls setup when using proxy tunnel #23365

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tw4452852
Copy link
Contributor

@tw4452852 tw4452852 commented Mar 26, 2025

When initializing a https connection through a proxy tunnel, we need to initialize tls at first, but this step is missing right now unfortunately.

I encountered this issue in my local network environment which is behind a proxy, it works now with this change.

Closes #19878

@@ -1487,6 +1488,38 @@ pub fn connectTunnel(
conn.port = tunnel_port;
conn.closing = false;

if (tunnel_protocol == .tls) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This block just mimics what we did in connectTcp.

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

Successfully merging this pull request may close these issues.

HTTP client fails to make HTTPS requests via a proxy
1 participant