From 598307f33851d5c1bcc148118686838d0e1c909e Mon Sep 17 00:00:00 2001
From: Alam Ed Arias <alam@srb2.org>
Date: Sun, 2 Feb 2025 22:50:17 -0500
Subject: [PATCH] Only check for -noipv6 on IPv6 builds in HTTP code

---
 src/netcode/http-mserv.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/netcode/http-mserv.c b/src/netcode/http-mserv.c
index 5f3490cacc..0c96561ef0 100644
--- a/src/netcode/http-mserv.c
+++ b/src/netcode/http-mserv.c
@@ -64,7 +64,9 @@ consvar_t cv_masterserver_token = CVAR_INIT
 static int hms_started;
 
 static boolean hms_args_checked;
+#ifndef NO_IPV6
 static boolean hms_allow_ipv6;
+#endif
 static boolean hms_allow_ipv4;
 
 static char *hms_api;
@@ -141,7 +143,9 @@ static void HMS_check_args_once(void)
 	if (hms_args_checked)
 		return;
 
+#ifndef NO_IPV6
 	hms_allow_ipv6 = !M_CheckParm("-noipv6");
+#endif
 	hms_allow_ipv4 = !M_CheckParm("-noipv4");
 	hms_args_checked = true;
 }
-- 
GitLab