client: remove automatic SNI support (#888)

SNI support should be enabled by properly filling TLSConfig.
This commit is contained in:
Alessandro Ros
2025-09-15 15:54:37 +02:00
committed by GitHub
parent 0e425a863b
commit 0e674daa7b
2 changed files with 0 additions and 56 deletions

View File

@@ -1188,11 +1188,6 @@ func (c *Client) connOpen() error {
if tlsConfig == nil {
tlsConfig = &tls.Config{}
}
tlsConfig.ServerName = (&base.URL{
Scheme: c.Scheme,
Host: c.Host,
}).Hostname()
nconn = tls.Client(nconn, tlsConfig)
}