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