mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Added ip resolve option to speed up curl connections
This commit is contained in:
parent
b83bc2c2dc
commit
c40222fb2d
1 changed files with 1 additions and 0 deletions
|
@ -128,6 +128,7 @@ void NetRequest::DoTransfer()
|
||||||
curl_easy_setopt(mCURL, CURLOPT_XFERINFOFUNCTION, TransferInfoCallback);
|
curl_easy_setopt(mCURL, CURLOPT_XFERINFOFUNCTION, TransferInfoCallback);
|
||||||
curl_easy_setopt(mCURL, CURLOPT_FOLLOWLOCATION, 1L);
|
curl_easy_setopt(mCURL, CURLOPT_FOLLOWLOCATION, 1L);
|
||||||
curl_easy_setopt(mCURL, CURLOPT_NOPROGRESS, 0L);
|
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);
|
//auto result = curl_easy_perform(mCURL);
|
||||||
|
|
||||||
CURLMcode mcode = curl_multi_add_handle(mCURLMulti, mCURL);
|
CURLMcode mcode = curl_multi_add_handle(mCURLMulti, mCURL);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue