altsvc: accept and parse IPv6 addresses in response headers

Store numerical IPv6 addresses in the alt-svc file with the brackets
present.

Verify with test 437 and 438

Fixes #11737
Reported-by: oliverpool on github
Closes #11743
This commit is contained in:
Daniel Stenberg 2023-08-27 00:06:02 +02:00
parent a06de2b772
commit 25ca79df1e
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
5 changed files with 231 additions and 14 deletions

View file

@ -33,6 +33,9 @@ space separated fields.
8. Boolean (1 or 0) if "persist" was set for this entry
9. Integer priority value (not currently used)
If the host name is an IPv6 numerical address, it is stored with brackets such
as `[::1]`.
# TODO
- handle multiple response headers, when one of them says `clear` (should