Skip to content

Commit ea0740e

Browse files
committed
fix(devtools-connect): have the driver skip ping during connect
1 parent 99fbdb9 commit ea0740e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/devtools-connect/src/connect.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,8 @@ async function connectMongoClientImpl({
562562
return dns.lookup(hostname, { verbatim: false, ...options }, callback);
563563
};
564564

565+
(mongoClientOptions as any).__skipPingOnConnect = true;
566+
565567
delete (mongoClientOptions as any).useSystemCA; // can be removed once no product uses this anymore
566568
delete mongoClientOptions.productDocsLink;
567569
delete mongoClientOptions.productName;

0 commit comments

Comments
 (0)