diff --git a/SOCKS.h b/SOCKS.h index 9c77a703..fa387ada 100644 --- a/SOCKS.h +++ b/SOCKS.h @@ -18,7 +18,8 @@ * - 256 on mingw. * * */ -#define HOST_NAME_MAX 256 +#include +#define HOST_NAME_MAX MAXHOSTNAMELEN #endif namespace i2p