We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
rejectUnauthorized
true
1 parent 6045ccf commit 2c55b27Copy full SHA for 2c55b27
lib/socket.js
@@ -90,7 +90,7 @@ function Socket (uri, opts) {
90
this.cert = opts.cert || null;
91
this.ca = opts.ca || null;
92
this.ciphers = opts.ciphers || null;
93
- this.rejectUnauthorized = opts.rejectUnauthorized === undefined ? null : opts.rejectUnauthorized;
+ this.rejectUnauthorized = opts.rejectUnauthorized === undefined ? true : opts.rejectUnauthorized;
94
95
// other options for Node.js client
96
var freeGlobal = typeof global === 'object' && global;
0 commit comments