Skip to content

net/dial: add HTTPS proxy support#33

Merged
fatedier merged 1 commit intofatedier:masterfrom
shani1998:feat/https-proxy-support
Mar 29, 2026
Merged

net/dial: add HTTPS proxy support#33
fatedier merged 1 commit intofatedier:masterfrom
shani1998:feat/https-proxy-support

Conversation

@shani1998
Copy link
Copy Markdown
Contributor

@shani1998 shani1998 commented Mar 25, 2026

Add https as a supported dial proxy type alongside http, socks5, and ntlm.

When the proxy URL scheme is https://, a TLS handshake is performed with the proxy before sending the HTTP CONNECT request. This enables connections through TLS-terminating forward proxies (e.g. BlueCoat, Zscaler, or corporate HTTPS proxies).

New public API:

  • WithProxyTLSConfig(tlsConfig *tls.Config) — allows callers to provide a custom tls.Config for the proxy connection (e.g. custom CA certificates for private PKI).

Ref: fatedier/frp#4584

@shani1998 shani1998 force-pushed the feat/https-proxy-support branch from 759db27 to 5651dfd Compare March 25, 2026 13:45
@fatedier fatedier merged commit 74920a6 into fatedier:master Mar 29, 2026
2 of 3 checks passed
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.

2 participants