diff --git a/tunneldns/https_upstream.go b/tunneldns/https_upstream.go index ac9b60ec..57f51deb 100644 --- a/tunneldns/https_upstream.go +++ b/tunneldns/https_upstream.go @@ -83,7 +83,7 @@ func (u *UpstreamHTTPS) exchangeWireformat(msg []byte) ([]byte, error) { } req.Header.Add("Content-Type", "application/dns-message") - req.Host = u.endpoint.Hostname() + req.Host = u.endpoint.Host resp, err := u.client.Do(req) if err != nil {