diff options
Diffstat (limited to 'client.go')
| -rw-r--r-- | client.go | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -175,10 +175,6 @@ func (c *Client) dialContext(ctx context.Context, network, addr string) (net.Con func (c *Client) verifyConnection(cs tls.ConnectionState, hostname string) error { cert := cs.PeerCertificates[0] - // Verify hostname - if err := verifyHostname(cert, hostname); err != nil { - return err - } // See if the client trusts the certificate if c.TrustCertificate != nil { return c.TrustCertificate(hostname, cert) |