diff options
| author | Jannis R <mail@jannisr.de> | 2020-05-03 00:21:22 +0200 |
|---|---|---|
| committer | Jannis R <mail@jannisr.de> | 2020-05-03 00:21:22 +0200 |
| commit | c6a417420e4e82611fdf940d9b7403b8479f8dfc (patch) | |
| tree | 6e73abce1e3c45e874ea1399a8411332e36df406 /connect.js | |
| parent | 58d2e4c5e17b3306e35e7a8e28cce5cc4eb74f26 (diff) | |
client: followRedirects option
Diffstat (limited to 'connect.js')
| -rw-r--r-- | connect.js | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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, }) |
