From efd7cd155ef8419203ac3ae520ad68aed2812213 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 d99940990..09e7e9adc 100644 --- a/src/i_tcp.c +++ b/src/i_tcp.c @@ -24,7 +24,7 @@ #endif // __OS2__ #ifndef NO_IPV6 -#define HAVE_IPV6 +//#define HAVE_IPV6 #endif #ifdef _WIN32 diff --git a/src/mserv.h b/src/mserv.h index 512b21831..0b4e09bb8 100644 --- a/src/mserv.h +++ b/src/mserv.h @@ -30,8 +30,11 @@ typedef union typedef struct { 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)