Skip to content

Commit 6a8a4ea

Browse files
committed
tech reviewer comments
1 parent 6c802b8 commit 6a8a4ea

File tree

1 file changed

+4
-4
lines changed
  • source/fundamentals/connection

1 file changed

+4
-4
lines changed

source/fundamentals/connection/tls.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,12 @@ in the following ways:
8989
:emphasize-lines: 6
9090

9191
import { MongoClient } from 'mongodb';
92-
import { * as crypto } from 'crypto';
92+
import crypto from 'crypto';
9393

9494
const client = new MongoClient("mongodb+srv://...", {
95-
secureContext: {
96-
secureOptions: crypto.constants.SSL_OP_LEGACY_SERVER_CONNECT
97-
}
95+
secureContext: {
96+
secureOptions: crypto.constants.SSL_OP_LEGACY_SERVER_CONNECT
97+
}
9898
});
9999

100100
In addition to the ``tls`` client option, the driver provides more

0 commit comments

Comments
 (0)