Permalink
Browse files

[fix] Default `rejectUnauthorized` to `true` (#558)

  • Loading branch information...
darrachequesne committed Mar 24, 2017
1 parent 82f3f61 commit beb709031840a2c3378af0e0e96f04ebef33a9a6
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/socket.js
View
@@ -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

0 comments on commit beb7090

Please sign in to comment.