Skip to content

Instance Property

tlsServerName

The server name to use for certificate validation and SNI (Server Name Indication) when TLS is enabled. Defaults to none (but see below).
var tlsServerName: String?

Discussion

Note

When set to nil: If the connection is made to a server over TCP using init(host:port:username:password:database:tls:), the given host is used, unless it was an IP address string. If it was an IP, or the connection is made by any other method, SNI is disabled.