diff --git a/lib/net_uv.js b/lib/net_uv.js index 2c9df4b739b..8e000f68159 100644 --- a/lib/net_uv.js +++ b/lib/net_uv.js @@ -532,11 +532,13 @@ function listen(self, address, port, addressType) { self._handle.socket = self; self._handle.onconnection = onconnection; - debug("bind to " + address); - if (addressType == 6) { - r = self._handle.bind6(address, port); - } else { - r = self._handle.bind(address, port); + if (address || port) { + debug("bind to " + address); + if (addressType == 6) { + r = self._handle.bind6(address, port); + } else { + r = self._handle.bind(address, port); + } } if (r) {