Tweak HTTP host header. Fixes #107

This commit is contained in:
Cameron Steel 2020-01-26 01:22:11 +11:00 committed by GitHub
parent 7367827a11
commit 549478954f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 {