Skip to content

Commit

Permalink
fix(autoEncryption): use new url parser for autoEncryption client
Browse files Browse the repository at this point in the history
Fixes NODE-2054
  • Loading branch information
daprahamian committed Aug 13, 2019
1 parent 7e80bfe commit d3670c2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/operations/connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,10 @@ function createTopology(mongoClient, topologyType, options, callback) {
connectionString = 'mongodb://%2Ftmp%2Fmongocryptd.sock/?serverSelectionTimeoutMS=1000';
}

const mongocryptdClient = new MongoClient(connectionString, { useUnifiedTopology: true });
const mongocryptdClient = new MongoClient(connectionString, {
useNewUrlParser: true,
useUnifiedTopology: true
});
mongocryptdClient.connect(err => {
if (err) return callback(err, null);

Expand Down

0 comments on commit d3670c2

Please sign in to comment.