summaryrefslogtreecommitdiffstats
path: root/connect.js
diff options
context:
space:
mode:
authorJannis R <mail@jannisr.de>2020-05-03 00:21:22 +0200
committerJannis R <mail@jannisr.de>2020-05-03 00:21:22 +0200
commitc6a417420e4e82611fdf940d9b7403b8479f8dfc (patch)
tree6e73abce1e3c45e874ea1399a8411332e36df406 /connect.js
parent58d2e4c5e17b3306e35e7a8e28cce5cc4eb74f26 (diff)
client: followRedirects option
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,
})