Skip to content

Commit

Permalink
[fix] Default rejectUnauthorized to true (#558)
Browse files Browse the repository at this point in the history
  • Loading branch information
darrachequesne committed Mar 24, 2017
1 parent 82f3f61 commit beb7090
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/socket.js
Expand Up @@ -92,7 +92,7 @@ function Socket (uri, opts) {
this.cert = opts.cert || null;
this.ca = opts.ca || null;
this.ciphers = opts.ciphers || null;
this.rejectUnauthorized = opts.rejectUnauthorized === undefined ? null : opts.rejectUnauthorized;
this.rejectUnauthorized = opts.rejectUnauthorized === undefined ? true : opts.rejectUnauthorized;
this.forceNode = !!opts.forceNode;

// other options for Node.js client
Expand Down

0 comments on commit beb7090

Please sign in to comment.