mirror of
https://github.com/minetest/minetest.git
synced 2024-12-15 02:39:21 +01:00
httpfetch: Disable IPv6 here too if requested by settings (#8399)
This commit is contained in:
parent
1ae0335b62
commit
57e0f52aaa
@ -253,6 +253,10 @@ HTTPFetchOngoing::HTTPFetchOngoing(const HTTPFetchRequest &request_,
|
||||
curl_easy_setopt(curl, CURLOPT_INTERFACE, bind_address.c_str());
|
||||
}
|
||||
|
||||
if (!g_settings->getBool("enable_ipv6")) {
|
||||
curl_easy_setopt(curl, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);
|
||||
}
|
||||
|
||||
#if LIBCURL_VERSION_NUM >= 0x071304
|
||||
// Restrict protocols so that curl vulnerabilities in
|
||||
// other protocols don't affect us.
|
||||
|
Loading…
Reference in New Issue
Block a user