-
Notifications
You must be signed in to change notification settings - Fork 236
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
Use secure DNS for websocket connection establishment #5386
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 2 Skipped Deployments
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 10 files reviewed, 3 unresolved discussions (waiting on @aniampio, @jstuczyn, and @octol)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assuming it works in wasm, looks good!
Wasm is intentionally and explicitly (via compiler directives) excluded from these changes. There is no change to the wasm behavior. |
Adjust the websocket connection establishment (using
tokio_tungstenite
) to use a custom DNS resolver that tries DoH and DoT.instead of relying on the
tokio_tungstenite
to open thetokio::net::TcpStream
(which it does here) which would kick in the default network resolver we do the resolution and open theTcpStream
ourselves before handing off to the websocket libary,This change is![Reviewable](https://camo.githubusercontent.com/1541c4039185914e83657d3683ec25920c672c6c5c7ab4240ee7bff601adec0b/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)