aboutsummaryrefslogtreecommitdiff
path: root/client.go
diff options
context:
space:
mode:
authorAdnan Maolood <[email protected]>2021-03-04 14:36:31 -0500
committerAdnan Maolood <[email protected]>2021-03-04 14:36:31 -0500
commitbfa3356d3a307afdc8303f2e4cfe0d65c4befbde (patch)
tree940d6cb6ca5744dbc093025dade5c2e05a9feca9 /client.go
parentclient: Ignore certificate expiration time (diff)
downloadgo-gemini-bfa3356d3a307afdc8303f2e4cfe0d65c4befbde.tar.xz
go-gemini-bfa3356d3a307afdc8303f2e4cfe0d65c4befbde.zip
client: Remove hostname verification check
Diffstat (limited to 'client.go')
-rw-r--r--client.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/client.go b/client.go
index 2a26a63..7b577a8 100644
--- a/client.go
+++ b/client.go
@@ -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)