]> git.ipfire.org Git - thirdparty/curl.git/commit
quic: don't set SNI if hostname is an IP address
authorvvb2060 <vvb2060@gmail.com>
Sun, 10 Sep 2023 19:50:10 +0000 (03:50 +0800)
committerJay Satiro <raysatiro@yahoo.com>
Mon, 11 Sep 2023 06:14:23 +0000 (02:14 -0400)
commitd5c562cd0dfdde2424632d779cb5ed37ce10c72e
tree7d2e9ad014894602a4c955b9a3f7943f9f887228
parent39c883560a3b9ac7ddbec78f7a6a8cc13930f219
quic: don't set SNI if hostname is an IP address

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 https://github.com/curl/curl/issues/11827
Closes https://github.com/curl/curl/pull/11828
lib/vquic/curl_ngtcp2.c
lib/vquic/curl_quiche.c