Skip to content

Commit c61e183

Browse files
authored
fix(compass-shell): Remove connection option that is incompatible with driver 4 (#601)
1 parent b184da0 commit c61e183

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/compass-shell/src/modules/runtime.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@ function reduceSetupRuntime(state, action) {
6363
delete connection.options.useUnifiedTopology;
6464
delete connection.options.connectWithNoPrimary;
6565
delete connection.options.useNewUrlParser;
66+
// `true` is not a valid tls checkServerIdentity option that seems to break
67+
// driver 4
68+
//
69+
// TODO(NODE-3061): Remove when fixed on driver side
70+
if (connection.options.checkServerIdentity === true) {
71+
delete connection.options.checkServerIdentity;
72+
}
6673
}
6774

6875
const runtime = shouldUseNewRuntime

0 commit comments

Comments
 (0)