Skip to content

Commit

Permalink
fix(compass-shell): Remove connection option that is incompatible wit…
Browse files Browse the repository at this point in the history
…h driver 4 (#601)
  • Loading branch information
gribnoysup authored Feb 2, 2021
1 parent b184da0 commit c61e183
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/compass-shell/src/modules/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@ function reduceSetupRuntime(state, action) {
delete connection.options.useUnifiedTopology;
delete connection.options.connectWithNoPrimary;
delete connection.options.useNewUrlParser;
// `true` is not a valid tls checkServerIdentity option that seems to break
// driver 4
//
// TODO(NODE-3061): Remove when fixed on driver side
if (connection.options.checkServerIdentity === true) {
delete connection.options.checkServerIdentity;
}
}

const runtime = shouldUseNewRuntime
Expand Down

0 comments on commit c61e183

Please sign in to comment.