Change #228566
Category | None |
Changed by | Daniel Stenberg <daniel | @haxx.se>
Changed at | Mon 28 Apr 2025 23:48:02 |
Repository | https://api.github.com/repos/curl/curl |
Project | curl/curl |
Branch | bagder/fake-addrinfo |
Revision | e0ebc3ff134902b7ab2e1dcaa7bc18a561caa8d8 |
Comments
lib: provide a getaddrinfo wrapper This uses c-ares under the hood and supports the CURL_DNS_SERVER environment variable - for debug builds only. The getaddrinfo() replacement function is only used if CURL_DNS_SERVER is set to make a debug build work more like a release version without the variable set. 'override-dns' is a new feature for the test suite when curl can be told to use a dedicated DNS server, and test 2102 is the first to require this. Requires c-ares 1.26.0 or later. Closes #17134
Changed files
- lib/Makefile.inc
- lib/curl_addrinfo.c
- lib/fake_addrinfo.c
- lib/fake_addrinfo.h
- src/curlinfo.c
- tests/FILEFORMAT.md
- tests/README.md
- tests/data/test2102