summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/internal/http2/core.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/internal/http2/core.js b/lib/internal/http2/core.js
index 2d34e24a73..d2701dfb84 100644
--- a/lib/internal/http2/core.js
+++ b/lib/internal/http2/core.js
@@ -2898,7 +2898,7 @@ function connect(authority, options, listener) {
} else {
switch (protocol) {
case 'http:':
- socket = net.connect(options.port || port, options.host || host);
+ socket = net.connect({ port, host, ...options });
break;
case 'https:':
socket = tls.connect(port, host, initializeTLSOptions(options, host));