diff --git a/lib/net.js b/lib/net.js index 8fdd7bd86a8c46..f7d55ca6462920 100644 --- a/lib/net.js +++ b/lib/net.js @@ -152,7 +152,7 @@ function connect(...args) { socket.setTimeout(options.timeout); } - return Socket.prototype.connect.call(socket, normalized); + return socket.connect(normalized); }