curl/tests/http/testenv
Stefan Eissing 40d57c9f58
hostip: resolve user supplied ip addresses
When a user supplied an ip address in a URL as hostname, use that even
when address family restrictions like -4 or -6 are set.

Add test_10_15/16 to verify with a local proxy server.

Fixes #21146
Reported-by: Terrance Wong

How:
- cf-dns: on see the hostname is an ip(v6) address, add the respective
  A/AAAA to the dns query bits
- cf-dns/hostip: only hand out addrinfos for a family if that family
  is part of the DNS queries. That prevents for example ipv6 addresses
  to show up from dns cache entries
- change cf-ip-happy to no longer check for "ip_version" and instead
  use all addresses that cf-dns hands out

Closes #21295
2026-04-13 19:52:30 +02:00
..
mod_curltest mod_curltest: fix allocation size 2026-03-19 12:02:10 +01:00
__init__.py pytest: adding support for dnsd test server 2026-04-10 14:29:29 +02:00
caddy.py tests: alphabetize and group Python imports & add check 2026-04-08 10:28:05 -07:00
certs.py tests: alphabetize and group Python imports & add check 2026-04-08 10:28:05 -07:00
client.py tests: alphabetize and group Python imports & add check 2026-04-08 10:28:05 -07:00
curl.py hostip: resolve user supplied ip addresses 2026-04-13 19:52:30 +02:00
dante.py tests: alphabetize and group Python imports & add check 2026-04-08 10:28:05 -07:00
dnsd.py pytest: adding support for dnsd test server 2026-04-10 14:29:29 +02:00
env.py pytest: test threaded resolver 2026-04-11 17:31:56 +02:00
httpd.py hostip: resolve user supplied ip addresses 2026-04-13 19:52:30 +02:00
nghttpx.py tests: alphabetize and group Python imports & add check 2026-04-08 10:28:05 -07:00
ports.py pytest: bind to localhost 2025-09-10 00:55:07 +02:00
sshd.py tests: alphabetize and group Python imports & add check 2026-04-08 10:28:05 -07:00
vsftpd.py tests: alphabetize and group Python imports & add check 2026-04-08 10:28:05 -07:00
ws_echo_server.py tests: change Python code style to pass ruff checks 2024-10-04 14:02:05 -07:00