Method WithSrvAllowedHostsSuffix
- Namespace
- MongoDB.Driver.Core.Configuration
- Assembly
- MongoDB.Driver.dll
WithSrvAllowedHostsSuffix(string)
Returns a new ClusterSettings instance with the SRV allowed hosts suffix changed.
public ClusterSettings WithSrvAllowedHostsSuffix(string srvAllowedHostsSuffix)
Parameters
srvAllowedHostsSuffixstringThe hostname suffix that hosts returned by an SRV lookup are validated against, replacing the domain name that would otherwise be inferred from the SRV hostname. WARNING: Modifying the default SRV domain name validation can create vulnerabilities.
Returns
- ClusterSettings
A new ClusterSettings instance.