diff --git a/src/http-mserv.c b/src/http-mserv.c index f9134ba5008b0ba5f27e0b6ae48feee7ec95feef..a0912a81ee9c939185020f5d5f1f2d663c9b94b9 100644 --- a/src/http-mserv.c +++ b/src/http-mserv.c @@ -196,7 +196,9 @@ HMS_connect (const char *format, ...) curl_easy_setopt(curl, CURLOPT_URL, url); curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L); - curl_easy_setopt(curl, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4); + + if (M_CheckParm("-noipv6")) + curl_easy_setopt(curl, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4); curl_easy_setopt(curl, CURLOPT_TIMEOUT, cv_masterserver_timeout.value); curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, HMS_on_read);