mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-12-30 06:21:14 +00:00
Only test -noipv6 if enabled at compile time
This commit is contained in:
parent
46a5ce4325
commit
39fdbac2ac
1 changed files with 2 additions and 0 deletions
|
@ -197,7 +197,9 @@ HMS_connect (const char *format, ...)
|
||||||
curl_easy_setopt(curl, CURLOPT_URL, url);
|
curl_easy_setopt(curl, CURLOPT_URL, url);
|
||||||
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
|
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
|
||||||
|
|
||||||
|
#ifndef NO_IPV6
|
||||||
if (M_CheckParm("-noipv6"))
|
if (M_CheckParm("-noipv6"))
|
||||||
|
#endif
|
||||||
curl_easy_setopt(curl, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);
|
curl_easy_setopt(curl, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);
|
||||||
|
|
||||||
curl_easy_setopt(curl, CURLOPT_TIMEOUT, cv_masterserver_timeout.value);
|
curl_easy_setopt(curl, CURLOPT_TIMEOUT, cv_masterserver_timeout.value);
|
||||||
|
|
Loading…
Reference in a new issue