mirror of
https://github.com/curl/curl.git
synced 2026-08-05 07:26:13 +03:00
global_init: move the IPv6 works status bool to multi handle
Previously it was stored in a global state which contributed to curl_global_init's thread unsafety. This boolean is now instead figured out in curl_multi_init() and stored in the multi handle. Less effective, but thread safe. Closes #4851
This commit is contained in:
parent
872ea75acf
commit
0b030a5b23
8 changed files with 27 additions and 25 deletions
|
|
@ -743,7 +743,7 @@ Curl_addrinfo *Curl_resolver_getaddrinfo(struct connectdata *conn,
|
|||
break;
|
||||
}
|
||||
|
||||
if((pf != PF_INET) && !Curl_ipv6works())
|
||||
if((pf != PF_INET) && !Curl_ipv6works(conn))
|
||||
/* The stack seems to be a non-IPv6 one */
|
||||
pf = PF_INET;
|
||||
#endif /* CURLRES_IPV6 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue