diff --git a/http_client.go b/http_client.go index a47e850..8ee42e4 100644 --- a/http_client.go +++ b/http_client.go @@ -89,7 +89,7 @@ func (c *HTTPClient) Connect() (err error) { } if c.scheme == "https" { - tlsConn := tls.Client(c.conn, &tls.Config{InsecureSkipVerify: true}) + tlsConn := tls.Client(c.conn, &tls.Config{InsecureSkipVerify: true, ServerName: c.host}) if err = tlsConn.Handshake(); err != nil { return