summaryrefslogtreecommitdiffstats
path: root/connect.js
diff options
context:
space:
mode:
Diffstat (limited to 'connect.js')
-rw-r--r--connect.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/connect.js b/connect.js
index d2e8a6e..1c216a5 100644
--- a/connect.js
+++ b/connect.js
@@ -28,7 +28,8 @@ const connectToGeminiServer = (opt, cb) => {
const socket = connectTls({
ALPNProtocols: [ALPN_ID],
minVersion: MIN_TLS_VERSION,
- hostname, port,
+ host: hostname,
+ port,
cert, key, passphrase,
...tlsOpt,
})