httpsrr: send HTTPS query to the right target

When the target host is on a different port than 443, the name
"_[port]._https.[name]" shall be used.

Fixes #19301
Reported-by: Gunni on github
Closes #19324
This commit is contained in:
Daniel Stenberg 2025-11-01 20:21:25 +01:00
parent 6a97bc2c97
commit 8d0bfe74fb
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
5 changed files with 31 additions and 5 deletions

View file

@ -38,6 +38,7 @@
struct Curl_easy;
struct Curl_https_rrinfo {
char *rrname; /* if NULL, the same as the URL hostname */
/*
* Fields from HTTPS RR. The only mandatory fields are priority and target.
* See https://datatracker.ietf.org/doc/html/rfc9460#section-14.3.2