mirror of https://github.com/nodejs/node.git
net_uv: Fix test-net-server-bind
parent
fea524e145
commit
8eb1edc8ea
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue