Skip to content

Commit 2c55b27

Browse files
committed
default rejectUnauthorized to true
1 parent 6045ccf commit 2c55b27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/socket.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ function Socket (uri, opts) {
9090
this.cert = opts.cert || null;
9191
this.ca = opts.ca || null;
9292
this.ciphers = opts.ciphers || null;
93-
this.rejectUnauthorized = opts.rejectUnauthorized === undefined ? null : opts.rejectUnauthorized;
93+
this.rejectUnauthorized = opts.rejectUnauthorized === undefined ? true : opts.rejectUnauthorized;
9494

9595
// other options for Node.js client
9696
var freeGlobal = typeof global === 'object' && global;

0 commit comments

Comments
 (0)