diff --git a/include/net.h b/include/net.h index 7d755ae..9294a8f 100644 --- a/include/net.h +++ b/include/net.h @@ -37,7 +37,11 @@ typedef struct { +#ifdef HAVE_IPV6 + byte ip[16]; +#else byte ip[4]; +#endif unsigned short port; unsigned short family; // used to be pad, before IPV6 } netadr_t;