mirror of
https://github.com/nodejs/node-v0.x-archive.git
synced 2026-04-28 03:01:10 -04:00
uv: upgrade to 9c76d0d
This commit is contained in:
8
deps/uv/src/unix/udp.c
vendored
8
deps/uv/src/unix/udp.c
vendored
@@ -340,6 +340,14 @@ static int uv__bind(uv_udp_t* handle,
|
||||
goto out;
|
||||
}
|
||||
|
||||
#ifdef SO_REUSEPORT /* Apple's version of SO_REUSEADDR... */
|
||||
yes = 1;
|
||||
if (setsockopt(fd, SOL_SOCKET, SO_REUSEPORT, &yes, sizeof yes) == -1) {
|
||||
uv__set_sys_error(handle->loop, errno);
|
||||
goto out;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (flags & UV_UDP_IPV6ONLY) {
|
||||
#ifdef IPV6_V6ONLY
|
||||
yes = 1;
|
||||
|
||||
Reference in New Issue
Block a user