mirror of
https://github.com/m13253/dns-over-https.git
synced 2026-03-29 16:19:58 +00:00
Merge pull request #78 from leiless/DNSSEC-OK
[JSON-DOH] Honor DNSSEC OK flag for incoming DNS requests
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -3,6 +3,9 @@
|
||||
*.dll
|
||||
*.so
|
||||
*.dylib
|
||||
darwin-wrapper/doh-logger
|
||||
doh-client/doh-client
|
||||
doh-server/doh-server
|
||||
|
||||
# Test binary, build with `go test -c`
|
||||
*.test
|
||||
|
||||
@@ -67,6 +67,9 @@ func (c *Client) generateRequestGoogle(ctx context.Context, w dns.ResponseWriter
|
||||
udpSize := uint16(512)
|
||||
if opt := r.IsEdns0(); opt != nil {
|
||||
udpSize = opt.UDPSize()
|
||||
if opt.Do() {
|
||||
requestURL += "&do=1"
|
||||
}
|
||||
}
|
||||
|
||||
ednsClientAddress, ednsClientNetmask := c.findClientIP(w, r)
|
||||
|
||||
Reference in New Issue
Block a user