win: Actually exit if uv_udp_bind only wants IPv6.
This commit is contained in:
parent
efa720d1ba
commit
17d4686bad
@ -149,6 +149,7 @@ static int uv__bind(uv_udp_t* handle, int domain, struct sockaddr* addr,
|
||||
if ((flags & UV_UDP_IPV6ONLY) && domain != AF_INET6) {
|
||||
/* UV_UDP_IPV6ONLY is supported only for IPV6 sockets */
|
||||
uv_set_sys_error(loop, UV_EINVAL);
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (handle->socket == INVALID_SOCKET) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user