From 03432489523e4e8186ec7868b3c5b7ba3bde2e9c Mon Sep 17 00:00:00 2001 From: adnano Date: Sun, 27 Sep 2020 14:25:28 -0400 Subject: [PATCH] Remove port from host when verifying hostnames --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.go b/client.go index d1bd993..147d920 100644 --- a/client.go +++ b/client.go @@ -205,7 +205,7 @@ func (c *Client) Send(req *Request) (*Response, error) { return err } // Check that the certificate is valid for the hostname - if err := cert.VerifyHostname(req.Host); err != nil { + if err := cert.VerifyHostname(hostname(req.Host)); err != nil { return err } // Check that the client trusts the certificate