From 65c693ae248936882ea121b072b7651eaac67bd3 Mon Sep 17 00:00:00 2001 From: Stone Li Date: Tue, 31 Oct 2023 09:05:02 +0800 Subject: [PATCH] ENH: force using IPv4 JIRA: STUDIO-5009 Change-Id: I7e439474e4dd521556d3321b772cd9d57d3a3100 Signed-off-by: Stone Li --- src/slic3r/Utils/Http.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/slic3r/Utils/Http.cpp b/src/slic3r/Utils/Http.cpp index 97279dddc..099fd6168 100644 --- a/src/slic3r/Utils/Http.cpp +++ b/src/slic3r/Utils/Http.cpp @@ -176,6 +176,7 @@ Http::priv::priv(const std::string &url) #ifdef __WINDOWS__ ::curl_easy_setopt(curl, CURLOPT_SSLVERSION, CURL_SSLVERSION_MAX_TLSv1_2); #endif + ::curl_easy_setopt(curl, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4); ::curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L); ::curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L); }