If the returned value is UV_EAFNOSUPPORT (https://github.com/joyent/libuv/blob/master/src/inet.c#L165) you'd return 0, which is not right.