[curl/curl] 84d283: CURLOPT_IPRESOLVE: preventing wrong IP version fro...
Lucas Clemente Vella <[email protected]> Thu, 20 May 2021 14:17:39 -0700
| Newsgroups | gmane.comp.web.curl.cvs |
|---|---|
| Message-ID | <curl/curl/push/refs/heads/master/[email protected]> |
Branch: refs/heads/master
Home: https://github.com/curl/curl
Commit: 84d2839740ca78041ac7419d9aaeac55c1e1c729
https://github.com/curl/curl/commit/84d2839740ca78041ac7419d9aaeac55c1e1c729
Author: Lucas Clemente Vella <[email protected]>
Date: 2021-05-20 (Thu, 20 May 2021)
Changed paths:
M docs/libcurl/curl_easy_setopt.3
M docs/libcurl/opts/CURLOPT_IPRESOLVE.3
M docs/libcurl/opts/CURLOPT_RESOLVE.3
M include/curl/curl.h
M lib/asyn-ares.c
M lib/asyn-thread.c
M lib/connect.c
M lib/doh.c
M lib/hostip6.c
M lib/url.c
M tests/data/test1082
Log Message:
-----------
CURLOPT_IPRESOLVE: preventing wrong IP version from being used
In some situations, it was possible that a transfer was setup to
use an specific IP version, but due do DNS caching or connection
reuse, it ended up using a different IP version from requested.
This commit changes the effect of CURLOPT_IPRESOLVE from simply
restricting address resolution to preventing the wrong connection
type being used, when choosing a connection from the pool, and
to restricting what addresses could be used when establishing
a new connection.
It is important that all addresses versions are resolved, even if
not used in that transfer in particular, because the result is
cached, and could be useful for a different transfer with a
different CURLOPT_IPRESOLVE setting.
Closes #6853
_______________________________________________
curl-commits mailing list
[email protected]
https://cool.haxx.se/cgi-bin/mailman/listinfo/curl-commits