Skip to content

Commit

Permalink
fix(encryption): do not attempt to merge autoEncryption options
Browse files Browse the repository at this point in the history
Attempting to do so while keyVaultClient is present will
result in infinite recursion
  • Loading branch information
daprahamian committed Nov 13, 2019
1 parent 15be3c3 commit e27fdf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/operations/connect.js
Expand Up @@ -515,7 +515,7 @@ function createUnifiedOptions(finalOptions, options) {
'rs_options',
'mongos_options'
];
const noMerge = ['readconcern', 'compression'];
const noMerge = ['readconcern', 'compression', 'autoencryption'];

for (const name in options) {
if (noMerge.indexOf(name.toLowerCase()) !== -1) {
Expand Down

0 comments on commit e27fdf9

Please sign in to comment.