diff options
Diffstat (limited to 'docs/libcurl/opts/CURLOPT_IPRESOLVE.3')
-rw-r--r-- | docs/libcurl/opts/CURLOPT_IPRESOLVE.3 | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/docs/libcurl/opts/CURLOPT_IPRESOLVE.3 b/docs/libcurl/opts/CURLOPT_IPRESOLVE.3 index 4bdd8b2fe..6d534da9e 100644 --- a/docs/libcurl/opts/CURLOPT_IPRESOLVE.3 +++ b/docs/libcurl/opts/CURLOPT_IPRESOLVE.3 @@ -29,14 +29,15 @@ CURLOPT_IPRESOLVE \- specify which IP protocol version to use CURLcode curl_easy_setopt(CURL *handle, CURLOPT_IPRESOLVE, long resolve); .SH DESCRIPTION Allows an application to select what kind of IP addresses to use when -resolving host names. This is only interesting when using host names that -resolve addresses using more than one version of IP. The allowed values are: +establishing a connection or choosing one from the connection pool. This is +interesting when using host names that resolve addresses using more than +one version of IP. The allowed values are: .IP CURL_IPRESOLVE_WHATEVER -Default, resolves addresses to all IP versions that your system allows. +Default, can use addresses of all IP versions that your system allows. .IP CURL_IPRESOLVE_V4 -Resolve to IPv4 addresses. +Uses only IPv4 addresses. .IP CURL_IPRESOLVE_V6 -Resolve to IPv6 addresses. +Uses only IPv6 addresses. .SH DEFAULT CURL_IPRESOLVE_WHATEVER .SH PROTOCOLS @@ -47,7 +48,7 @@ CURL *curl = curl_easy_init(); if(curl) { curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/foo.bin"); - /* resolve host name using IPv6-names only */ + /* of all addresses example.com resolves to, only IPv6 ones are used */ curl_easy_setopt(curl, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V6); ret = curl_easy_perform(curl); |