From 72abf040ac48253399787a60244318c0500b4770 Mon Sep 17 00:00:00 2001 From: mauve Date: Mon, 17 Aug 2020 20:57:59 -0400 Subject: Fix up protocol issues --- connect.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'connect.js') 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, }) -- cgit v1.3