Skip to content

Commit d0c551c

Browse files
calzonemandarrachequesne
authored andcommitted
fix: replace default nulls in SSL options with undefineds
Related: #654 See also: nodejs/node@35274cb
1 parent b1630ba commit d0c551c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/socket.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,12 @@ function Socket (uri, opts) {
8686
}
8787

8888
// SSL options for Node.js client
89-
this.pfx = opts.pfx || null;
90-
this.key = opts.key || null;
91-
this.passphrase = opts.passphrase || null;
92-
this.cert = opts.cert || null;
93-
this.ca = opts.ca || null;
94-
this.ciphers = opts.ciphers || null;
89+
this.pfx = opts.pfx || undefined;
90+
this.key = opts.key || undefined;
91+
this.passphrase = opts.passphrase || undefined;
92+
this.cert = opts.cert || undefined;
93+
this.ca = opts.ca || undefined;
94+
this.ciphers = opts.ciphers || undefined;
9595
this.rejectUnauthorized = opts.rejectUnauthorized === undefined ? true : opts.rejectUnauthorized;
9696
this.forceNode = !!opts.forceNode;
9797

0 commit comments

Comments
 (0)