Remove port from host when verifying hostnames
This commit is contained in:
parent
188c3457e6
commit
0343248952
|
@ -205,7 +205,7 @@ func (c *Client) Send(req *Request) (*Response, error) {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
// Check that the certificate is valid for the hostname
|
// 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
|
return err
|
||||||
}
|
}
|
||||||
// Check that the client trusts the certificate
|
// Check that the client trusts the certificate
|
||||||
|
|
Loading…
Reference in New Issue
Block a user