Skip to content

Commit

Permalink
feat(DRIVERS-2922): loosen options parser restrictions
Browse files Browse the repository at this point in the history
  • Loading branch information
aditi-khare-mongoDB committed Aug 8, 2024
1 parent a35de87 commit 4462785
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ It is an error to specify more than one host name in a connection string with th
MUST raise a parse error and MUST NOT do DNS resolution or contact hosts.

A driver MUST verify that in addition to the `{hostname}`, the `{domainname}` consists of at least two parts: the domain
name, and a TLD. Drivers MUST raise an error and MUST NOT contact the DNS server to obtain SRV (or TXT records) if the
full URI does not consist of at least three parts.
name, and a TLD.
In the case of an SRV record, however, an error should NOT be thrown before DNS resolution is attempted.

If `mongodb+srv` is used, a driver MUST implicitly also enable TLS. Clients can turn this off by passing `tls=false` in
either the Connection String, or options passed in as parameters in code to the MongoClient constructor (or equivalent
Expand Down

0 comments on commit 4462785

Please sign in to comment.