From f43d2c69e010512761372fa5720f55f53ee696fd Mon Sep 17 00:00:00 2001 From: leixiang Date: Sun, 19 Apr 2020 10:57:03 +0800 Subject: [PATCH 1/2] doh-client/google.go: [JSON-DOH] Honor DNSSEC OK flag for incoming DNS requests --- doh-client/google.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doh-client/google.go b/doh-client/google.go index 0e4bc9d..5b718bb 100644 --- a/doh-client/google.go +++ b/doh-client/google.go @@ -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) From b92da5253947dcda7fec2ed4c11da0894d0428c5 Mon Sep 17 00:00:00 2001 From: leixiang Date: Sun, 19 Apr 2020 11:02:16 +0800 Subject: [PATCH 2/2] .gitignore: Ignore make output binaries --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index f46854f..cc55593 100644 --- a/.gitignore +++ b/.gitignore @@ -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