diff options
| author | Adnan Maolood <[email protected]> | 2021-03-04 14:36:31 -0500 |
|---|---|---|
| committer | Adnan Maolood <[email protected]> | 2021-03-04 14:36:31 -0500 |
| commit | bfa3356d3a307afdc8303f2e4cfe0d65c4befbde (patch) | |
| tree | 940d6cb6ca5744dbc093025dade5c2e05a9feca9 /client.go | |
| parent | client: Ignore certificate expiration time (diff) | |
| download | go-gemini-bfa3356d3a307afdc8303f2e4cfe0d65c4befbde.tar.xz go-gemini-bfa3356d3a307afdc8303f2e4cfe0d65c4befbde.zip | |
client: Remove hostname verification check
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) |