Merge pull request #1351 from dgarske/fix_ipv6

Fix for building with IPV6
This commit is contained in:
toddouska
2018-02-07 10:04:41 -08:00
committed by GitHub

View File

@@ -695,8 +695,9 @@ static INLINE void build_addr(SOCKADDR_IN_T* addr, const char* peer,
#else
addr->sin6_family = AF_INET_V;
addr->sin6_port = XHTONS(port);
if (peer == INADDR_ANY)
if ((size_t)peer == INADDR_ANY) {
addr->sin6_addr = in6addr_any;
}
else {
#ifdef HAVE_GETADDRINFO
struct addrinfo hints;