Skip to content

Commit

Permalink
fix(cmap): accept all node TLS options as pool options
Browse files Browse the repository at this point in the history
  • Loading branch information
mbroadst committed Jan 16, 2020
1 parent 9698a76 commit 5995d1d
Showing 1 changed file with 27 additions and 4 deletions.
31 changes: 27 additions & 4 deletions lib/cmap/connection_pool.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ const kCancelled = Symbol('cancelled');

const VALID_POOL_OPTIONS = new Set([
// `connect` options
'host',
'port',
'ssl',
'bson',
'connectionType',
'monitorCommands',
Expand All @@ -46,14 +45,38 @@ const VALID_POOL_OPTIONS = new Set([
'compression',

// node Net options
'ssl',
'host',
'port',
'localAddress',
'localPort',
'family',
'hints',
'lookup',
'checkServerIdentity',
'path',

// node TLS options
'ca',
'cert',
'sigalgs',
'ciphers',
'clientCertEngine',
'crl',
'dhparam',
'ecdhCurve',
'honorCipherOrder',
'key',
'privateKeyEngine',
'privateKeyIdentifier',
'maxVersion',
'minVersion',
'passphrase',
'pfx',
'secureOptions',
'secureProtocol',
'sessionIdContext',
'allowHalfOpen',
'rejectUnauthorized',
'pskCallback',
'ALPNProtocols',
'servername',
'checkServerIdentity',
Expand Down

0 comments on commit 5995d1d

Please sign in to comment.