Skip to content

Commit a4e0d83

Browse files
devkevkay-kim
authored andcommitted
Fix port typo in DNS seedlist example
1 parent 1d2c0c2 commit a4e0d83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/reference/connection-string.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ the DNS SRV records and the options retrieved from the TXT records, the parsed s
193193

194194
.. code-block:: none
195195

196-
mongodb://mongodb1.example.com:27317,mongodb2.example.com:27107/?replicaSet=mySet&authSource=authDB
196+
mongodb://mongodb1.example.com:27317,mongodb2.example.com:27017/?replicaSet=mySet&authSource=authDB
197197

198198
Options set in a TXT record can be overridden by passing in a query string with the URI. In the example below,
199199
the query string has provided an override for the ``authSource`` option configured in the TXT record of the DNS
@@ -208,7 +208,7 @@ would look like this (after parse).
208208

209209
.. code-block:: none
210210

211-
mongodb://mongodb1.example.com:27317,mongodb2.example.com:27107/?connectTimeoutMS=300000&replicaSet=mySet&authSource=aDifferentAuthDB
211+
mongodb://mongodb1.example.com:27317,mongodb2.example.com:27017/?connectTimeoutMS=300000&replicaSet=mySet&authSource=aDifferentAuthDB
212212

213213
.. note::
214214
The ``mongodb+srv`` option will fail if there is no available DNS with records that correspond to the

0 commit comments

Comments
 (0)