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;