From c40222fb2d23ab7e8cd1a9fc31713c7cb91816ea Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Sat, 21 Nov 2020 07:09:41 -0800 Subject: [PATCH] Added ip resolve option to speed up curl connections --- IDEHelper/NetManager.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/IDEHelper/NetManager.cpp b/IDEHelper/NetManager.cpp index 6f7efdc5..7bc4edd3 100644 --- a/IDEHelper/NetManager.cpp +++ b/IDEHelper/NetManager.cpp @@ -128,6 +128,7 @@ void NetRequest::DoTransfer() curl_easy_setopt(mCURL, CURLOPT_XFERINFOFUNCTION, TransferInfoCallback); curl_easy_setopt(mCURL, CURLOPT_FOLLOWLOCATION, 1L); curl_easy_setopt(mCURL, CURLOPT_NOPROGRESS, 0L); + curl_easy_setopt(mCURL, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4); // Connects go slow without this //auto result = curl_easy_perform(mCURL); CURLMcode mcode = curl_multi_add_handle(mCURLMulti, mCURL);