From a567e9503448a6cfad4862b3e5280bd57704165f Mon Sep 17 00:00:00 2001 From: Damien Arrachequesne Date: Wed, 5 Oct 2016 01:04:22 +0200 Subject: [PATCH] Revert "default `rejectUnauthorized` to `true`" This reverts commit 2c55b278a491bf45313ecc0825cf800e2f7ff5c1, which breaks websocket transport under node v0.10 (#494). --- lib/socket.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/socket.js b/lib/socket.js index c13649946..9a3656358 100644 --- a/lib/socket.js +++ b/lib/socket.js @@ -90,7 +90,7 @@ function Socket (uri, opts) { this.cert = opts.cert || null; this.ca = opts.ca || null; this.ciphers = opts.ciphers || null; - this.rejectUnauthorized = opts.rejectUnauthorized === undefined ? true : opts.rejectUnauthorized; + this.rejectUnauthorized = opts.rejectUnauthorized === undefined ? null : opts.rejectUnauthorized; // other options for Node.js client var freeGlobal = typeof global === 'object' && global;