From 39fdbac2ace76cc1ead1b92b4f32d2aa17ad99d2 Mon Sep 17 00:00:00 2001 From: James R Date: Fri, 3 Sep 2021 16:41:08 -0700 Subject: [PATCH] Only test -noipv6 if enabled at compile time --- src/http-mserv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/http-mserv.c b/src/http-mserv.c index a0912a81e..0ab16f989 100644 --- a/src/http-mserv.c +++ b/src/http-mserv.c @@ -197,7 +197,9 @@ HMS_connect (const char *format, ...) curl_easy_setopt(curl, CURLOPT_URL, url); curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L); +#ifndef NO_IPV6 if (M_CheckParm("-noipv6")) +#endif curl_easy_setopt(curl, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4); curl_easy_setopt(curl, CURLOPT_TIMEOUT, cv_masterserver_timeout.value);