From 2350f98aed40d8161e73196e4398ee0201edcb1f Mon Sep 17 00:00:00 2001 From: Alug Date: Mon, 31 Mar 2025 08:27:43 +0200 Subject: [PATCH] disable compiling with ipv6 support see commit before --- src/i_tcp.c | 2 +- src/mserv.h | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/i_tcp.c b/src/i_tcp.c index e3d0c4c4f..ddf8c3786 100644 --- a/src/i_tcp.c +++ b/src/i_tcp.c @@ -20,7 +20,7 @@ #endif #ifndef NO_IPV6 - #define HAVE_IPV6 +#define HAVE_IPV6 #endif #ifdef _WIN32 diff --git a/src/mserv.h b/src/mserv.h index 2f8f0a7cb..68a78576c 100644 --- a/src/mserv.h +++ b/src/mserv.h @@ -34,8 +34,11 @@ typedef union struct msg_server_t { msg_header_t header; +#ifndef HAVE_IPV6 char ip[16]; - //char ip[sizeof "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff"]; +#else + char ip[sizeof "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff"]; +#endif char port[8]; char contact[32]; char version[8]; // format is: x.yy.z (like 1.30.2 or 1.31)