Skip to content

Commit

Permalink
default rejectUnauthorized to true
Browse files Browse the repository at this point in the history
  • Loading branch information
rauchg committed Mar 30, 2016
1 parent 6045ccf commit 2c55b27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,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;

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

0 comments on commit 2c55b27

Please # to comment.