Unfortunately, my code detecting whether IPv6 works on my systems is not a 
generic one and very specific to linux kernels, network configurations and 
software used in my devices.
It also depends on some other components, which just cannot be integrated or 
used inside libcurl.

That's why I suggested to have a system callback which would allow developers 
to provide their own "IPv6 works" detection mechanism overriding the default 
one.

Thanks,
Dmitry Karpov

-----Original Message-----
From: curl-library <curl-library-boun...@lists.haxx.se> On Behalf Of Daniel F 
via curl-library
Sent: Friday, September 23, 2022 9:41 AM
To: libcurl development <curl-library@lists.haxx.se>
Cc: dan...@poradnik-webmastera.com
Subject: Re: [EXTERNAL] Re: Feature request: provide ability to set a global 
callback function telling libcurl if IPv6 works on the system

> In other words, it is much easier and cleaner to override how
> Curl_ipv6works() to adjust to demands of certain systems/scenarios 
> than do checks if "IPv6 works" and change resolve mode in every place 
> where application sets a transfer.

Maybe you could contribute your system-specific IPv6 detection code as
patch(es) for libcurl? This approach would not require any new callback.

Regards,
Daniel
--
Unsubscribe: https://lists.haxx.se/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html
-- 
Unsubscribe: https://lists.haxx.se/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html

Reply via email to