Tweak HTTP host header. Fixes #107 (#168)

This commit is contained in:
Cameron Steel 2020-02-25 04:08:14 +11:00 committed by GitHub
parent 464bb53049
commit a5f67091bf
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 {