We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
rejectUnauthorized
true
1 parent 692f18c commit 7fa16d5Copy full SHA for 7fa16d5
lib/socket.js
@@ -98,7 +98,7 @@ function Socket(uri, opts){
98
this.cert = opts.cert || null;
99
this.ca = opts.ca || null;
100
this.ciphers = opts.ciphers || null;
101
- this.rejectUnauthorized = opts.rejectUnauthorized === undefined ? null : opts.rejectUnauthorized;
+ this.rejectUnauthorized = opts.rejectUnauthorized === undefined ? true : opts.rejectUnauthorized;
102
103
// other options for Node.js client
104
var freeGlobal = typeof global == 'object' && global;
0 commit comments