Skip to content

Conversation

@eball
Copy link

@eball eball commented Oct 22, 2025

Refactor proxyRaw function to prioritize DialTLSContext and DialContext for establishing connections.

Refactor proxyRaw function to prioritize DialTLSContext and DialContext for establishing connections.
@aldas
Copy link
Contributor

aldas commented Oct 22, 2025

Could you explain/describe what the intention of this change is and in which use-case you would benefit from it?

@eball
Copy link
Author

eball commented Oct 22, 2025

In non-WebSocket scenarios, proxyHttp allows customizing the dial behavior by defining a dialContext function in the transport configuration. Therefore, in WebSocket scenarios, I also hope to be able to customize the dial process through the dialContext function in the transport. For example, in one of my scenarios, when establishing a WebSocket TLS connection, the TCP dial connects to localhost, but during the TLS handshake, I need to add domain name information in the SNI.

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