mirror of
https://github.com/m13253/dns-over-https.git
synced 2026-03-30 12:05:38 +00:00
doh-client/google.go: [JSON-DOH] Honor DNSSEC OK flag for incoming DNS requests
This commit is contained in:
@@ -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