]> git.ipfire.org Git - thirdparty/curl.git/commit
hostip: lazily wait to figure out if IPv6 works until needed
authorDaniel Stenberg <daniel@haxx.se>
Wed, 21 Sep 2022 06:52:57 +0000 (08:52 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 22 Sep 2022 07:47:59 +0000 (09:47 +0200)
commit46f3fe0e75aa4cd1ae057b3703a6ddd272356813
treedc40f3b20165838a8e04184613a636224b91dc1d
parent7295e62c66cac62751a0a9964dc317048d145524
hostip: lazily wait to figure out if IPv6 works until needed

The check may take many milliseconds, so now it is performed once the
value is first needed. Also, this change makes sure that the value is
not used if the resolve is set to be IPv4-only.

Closes #9553
lib/asyn-ares.c
lib/asyn-thread.c
lib/doh.c
lib/hostip.c
lib/hostip6.c
lib/multi.c
lib/multihandle.h