diff --git a/lib/net.js b/lib/net.js index 9f03259d96..d6a01aa837 100644 --- a/lib/net.js +++ b/lib/net.js @@ -612,11 +612,6 @@ function afterWrite(status, handle, req) { function connect(self, address, port, addressType, localAddress) { - if (port) { - self.remotePort = port; - } - self.remoteAddress = address; - // TODO return promise from Socket.prototype.connect which // wraps _connectReq.