Skip to content

Commit e27fdf9

Browse files
committed
fix(encryption): do not attempt to merge autoEncryption options
Attempting to do so while keyVaultClient is present will result in infinite recursion
1 parent 15be3c3 commit e27fdf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/operations/connect.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ function createUnifiedOptions(finalOptions, options) {
515515
'rs_options',
516516
'mongos_options'
517517
];
518-
const noMerge = ['readconcern', 'compression'];
518+
const noMerge = ['readconcern', 'compression', 'autoencryption'];
519519

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

0 commit comments

Comments
 (0)