Add NO_IPV6 check

This commit is contained in:
Gustaf Alhäll 2023-11-30 16:03:44 +01:00
parent 40f57de187
commit 2e885d4e6f
No known key found for this signature in database
GPG key ID: 6C1F67D690CDEDFD

View file

@ -1364,7 +1364,11 @@ boolean I_InitTcpNetwork(void)
boolean Net_IsNodeIPv6(INT32 node)
{
#ifdef NO_IPV6
return false;
#else
return clientaddress[node].any.sa_family == AF_INET6;
#endif
}
#include "i_addrinfo.c"