Skip to content

Commit beb7090

Browse files
[fix] Default rejectUnauthorized to true (#558)
1 parent 82f3f61 commit beb7090

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/socket.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ function Socket (uri, opts) {
9292
this.cert = opts.cert || null;
9393
this.ca = opts.ca || null;
9494
this.ciphers = opts.ciphers || null;
95-
this.rejectUnauthorized = opts.rejectUnauthorized === undefined ? null : opts.rejectUnauthorized;
95+
this.rejectUnauthorized = opts.rejectUnauthorized === undefined ? true : opts.rejectUnauthorized;
9696
this.forceNode = !!opts.forceNode;
9797

9898
// other options for Node.js client

0 commit comments

Comments
 (0)