summaryrefslogtreecommitdiffstats
path: root/connect.js
diff options
context:
space:
mode:
Diffstat (limited to 'connect.js')
-rw-r--r--connect.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/connect.js b/connect.js
index 35e2297..c606703 100644
--- a/connect.js
+++ b/connect.js
@@ -13,11 +13,11 @@ const connectToGeminiServer = (opt, cb) => {
opt = {}
}
const {
- host,
+ hostname,
port,
tlsOpt,
} = {
- host: '127.0.0.1',
+ hostname: '127.0.0.1',
port: DEFAULT_PORT,
tlsOpt: {},
// todo: TOFU via isTrustedCertificate()
@@ -27,7 +27,7 @@ const connectToGeminiServer = (opt, cb) => {
const socket = connectTls({
ALPNProtocols: [ALPN_ID],
minVersion: MIN_TLS_VERSION,
- host, port,
+ hostname, port,
// todo: cert, key, passphrase
...tlsOpt,
})