disable compiling with ipv6 support

see commit before
This commit is contained in:
Alug 2025-03-31 08:27:43 +02:00 committed by NepDisk
parent c0b1458acc
commit 2350f98aed
2 changed files with 5 additions and 2 deletions

View file

@ -20,7 +20,7 @@
#endif
#ifndef NO_IPV6
#define HAVE_IPV6
#define HAVE_IPV6
#endif
#ifdef _WIN32

View file

@ -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)