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
http3: SNI should not be set if host is literal IP address #11827
Comments
https://www.rfc-editor.org/rfc/rfc6066#section-3
|
jay
pushed a commit
to vvb2060/curl
that referenced
this issue
Sep 10, 2023
- If hostname is an IP address don't set it as the SNI. The RFC says: Literal IPv4 and IPv6 addresses are not permitted in "HostName". We already check this for non-QUIC connections. Ref: https://www.rfc-editor.org/rfc/rfc6066#section-3 Fixes curl#11827 Closes curl#11828
jay
pushed a commit
to vvb2060/curl
that referenced
this issue
Sep 10, 2023
The RFC says: Literal IPv4 and IPv6 addresses are not permitted in "HostName". We already do this for non-QUIC connections. Ref: https://www.rfc-editor.org/rfc/rfc6066#section-3 Fixes curl#11827 Closes curl#11828
jay
pushed a commit
to vvb2060/curl
that referenced
this issue
Sep 11, 2023
RFC 6066 says: Literal IPv4 and IPv6 addresses are not permitted in "HostName". We already do this for non-QUIC connections. Ref: https://www.rfc-editor.org/rfc/rfc6066#section-3 Fixes curl#11827 Closes curl#11828
ptitSeb
pushed a commit
to wasix-org/curl
that referenced
this issue
Sep 25, 2023
We already do this for TLS connections. RFC 6066 says: Literal IPv4 and IPv6 addresses are not permitted in "HostName". Ref: https://www.rfc-editor.org/rfc/rfc6066#section-3 Fixes curl#11827 Closes curl#11828
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I did this
curl --http3-only https://1.1.1.1/cdn-cgi/trace
I expected the following
sni=off
curl/libcurl version
curl 8.2.1 (x86_64-w64-mingw32) libcurl/8.2.1 OpenSSL/3.1.2 (Schannel) zlib/1.3 brotli/1.1.0 zstd/1.5.5 WinIDN libssh2/1.11.0 nghttp2/1.56.0 ngtcp2/0.19.1 nghttp3/0.15.0
operating system
windows
The text was updated successfully, but these errors were encountered: