mirror of
https://github.com/m13253/dns-over-https.git
synced 2026-03-30 12:05:38 +00:00
Fix build error
This commit is contained in:
1
Makefile
1
Makefile
@@ -59,6 +59,7 @@ uninstall:
|
||||
|
||||
deps:
|
||||
@# I am not sure if it is the correct way to keep the common library updated
|
||||
$(GOGET_UPDATE) github.com/m13253/dns-over-https/doh-client/config
|
||||
$(GOGET_UPDATE) github.com/m13253/dns-over-https/json-dns
|
||||
$(GOGET) ./doh-client ./doh-server
|
||||
|
||||
|
||||
@@ -86,7 +86,7 @@ func (c *Client) generateRequestGoogle(ctx context.Context, w dns.ResponseWriter
|
||||
}
|
||||
|
||||
req.Header.Set("Accept", "application/json, application/dns-message, application/dns-udpwireformat")
|
||||
if !c.conf.NoUserAgent {
|
||||
if !c.conf.Other.NoUserAgent {
|
||||
req.Header.Set("User-Agent", USER_AGENT)
|
||||
} else {
|
||||
req.Header.Set("User-Agent", "")
|
||||
|
||||
@@ -128,7 +128,7 @@ func (c *Client) generateRequestIETF(ctx context.Context, w dns.ResponseWriter,
|
||||
req.Header.Set("Content-Type", "application/dns-message")
|
||||
}
|
||||
req.Header.Set("Accept", "application/dns-message, application/dns-udpwireformat, application/json")
|
||||
if !c.conf.NoUserAgent {
|
||||
if !c.conf.Other.NoUserAgent {
|
||||
req.Header.Set("User-Agent", USER_AGENT)
|
||||
} else {
|
||||
req.Header.Set("User-Agent", "")
|
||||
|
||||
Reference in New Issue
Block a user