0
0
mirror of https://github.com/zeromq/libzmq.git synced 2025-01-14 01:37:56 +08:00

Revert "is_ipv6_available: Create a fake zmq context on windows"

This reverts commit 9adf20aaeb2abfcbdf6baa08e524207c5b8c4dfb.
This commit is contained in:
Luca Boccassi 2016-08-23 21:46:43 +01:00
parent aab6ca787d
commit f486176741

View File

@ -339,10 +339,6 @@ is_ipv6_available(void)
inet_pton (AF_INET6, "::1", &(test_addr.sin6_addr));
#ifdef ZMQ_HAVE_WINDOWS
// initialize network stack
void *ctx = zmq_ctx_new();
assert(ctx);
SOCKET fd = socket (AF_INET6, SOCK_STREAM, IPPROTO_IP);
if (fd == INVALID_SOCKET)
ipv6 = 0;
@ -358,9 +354,6 @@ is_ipv6_available(void)
}
closesocket (fd);
}
rc = zmq_ctx_term(ctx);
assert(rc == 0);
#else
int fd = socket (AF_INET6, SOCK_STREAM, IPPROTO_IP);
if (fd == -1)