@ -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);
#endif
if (flags & UV_UDP_IPV6ONLY) {
#ifdef IPV6_V6ONLY