Skip to content
Snippets Groups Projects
Commit 313f2d29 authored by Alam Ed Arias's avatar Alam Ed Arias
Browse files

set CURLOPT_MAXREDIRS to 30

parent 36398588
No related branches found
No related tags found
1 merge request!2630set CURLOPT_MAXREDIRS to 30
...@@ -277,6 +277,9 @@ HMS_connect (int proto, const char *format, ...) ...@@ -277,6 +277,9 @@ HMS_connect (int proto, const char *format, ...)
cc = curl_easy_setopt(curl, CURLOPT_TIMEOUT, cv_masterserver_timeout.value); cc = curl_easy_setopt(curl, CURLOPT_TIMEOUT, cv_masterserver_timeout.value);
if (cc != CURLE_OK) I_OutputMsg("libcurl: %s\n", buffer->errbuf); if (cc != CURLE_OK) I_OutputMsg("libcurl: %s\n", buffer->errbuf);
cc = curl_easy_setopt(curl, CURLOPT_MAXREDIRS, 30L);
if (cc != CURLE_OK) I_OutputMsg("libcurl: %s\n", buffer->errbuf);
cc = curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, HMS_on_read); cc = curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, HMS_on_read);
if (cc != CURLE_OK) I_OutputMsg("libcurl: %s\n", buffer->errbuf); if (cc != CURLE_OK) I_OutputMsg("libcurl: %s\n", buffer->errbuf);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment