mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
net_uv: Fix test-net-server-bind
This commit is contained in:
1 parent
fea524e145
commit
8eb1edc8ea
1 file changed
+7
-5
+7
-5
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user