curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: Feature request: provide ability to set a global callback function telling libcurl if IPv6 works on the system

From: Dan Fandrich via curl-library <>
Date: Tue, 20 Sep 2022 12:13:50 -0700

On Tue, Sep 20, 2022 at 06:58:31PM +0000, Dmitry Karpov via curl-library wrote:
> To cover such a range of cases, curl application needs a more flexible approach for detection whether IPv6 works on the "system level".
> And I guess the "curl_global_init_ipv6() with callback" provides such flexibility and allows to satisfy a wide range of application-specific needs.

Without discussing of the merits of such an idea, a callback function doesn't
seem like the right way to configure this in libcurl. An option like
CURLOPT_IPRESOLVE seems like a much cleaner solution.

Received on 2022-09-20