Skip to content

Commit

Permalink
fix: replace default nulls in SSL options with undefineds
Browse files Browse the repository at this point in the history
Related: #654

See also: nodejs/node@35274cb
  • Loading branch information
calzoneman authored and darrachequesne committed Mar 2, 2021
1 parent b1630ba commit d0c551c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ function Socket (uri, opts) {
}

// SSL options for Node.js client
this.pfx = opts.pfx || null;
this.key = opts.key || null;
this.passphrase = opts.passphrase || null;
this.cert = opts.cert || null;
this.ca = opts.ca || null;
this.ciphers = opts.ciphers || null;
this.pfx = opts.pfx || undefined;
this.key = opts.key || undefined;
this.passphrase = opts.passphrase || undefined;
this.cert = opts.cert || undefined;
this.ca = opts.ca || undefined;
this.ciphers = opts.ciphers || undefined;
this.rejectUnauthorized = opts.rejectUnauthorized === undefined ? true : opts.rejectUnauthorized;
this.forceNode = !!opts.forceNode;

Expand Down

0 comments on commit d0c551c

Please sign in to comment.