Skip to content

Commit 7fa16d5

Browse files
committed
default rejectUnauthorized to true
1 parent 692f18c commit 7fa16d5

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
@@ -98,7 +98,7 @@ function Socket(uri, opts){
9898
this.cert = opts.cert || null;
9999
this.ca = opts.ca || null;
100100
this.ciphers = opts.ciphers || null;
101-
this.rejectUnauthorized = opts.rejectUnauthorized === undefined ? null : opts.rejectUnauthorized;
101+
this.rejectUnauthorized = opts.rejectUnauthorized === undefined ? true : opts.rejectUnauthorized;
102102

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

0 commit comments

Comments
 (0)