Skip to content

Instantly share code, notes, and snippets.

@chantra chantra/a.diff
Created May 16, 2018

Embed
What would you like to do?
diff --git a/plugin/pkg/edns/edns.go b/plugin/pkg/edns/edns.go
index 3f0ea5e1..c058a411 100644
--- a/plugin/pkg/edns/edns.go
+++ b/plugin/pkg/edns/edns.go
@@ -28,8 +28,8 @@ func Version(req *dns.Msg) (*dns.Msg, error) {
o.Hdr.Name = "."
o.Hdr.Rrtype = dns.TypeOPT
o.SetVersion(0)
- o.SetExtendedRcode(dns.RcodeBadVers)
m.Extra = []dns.RR{o}
+ m.Rcode = dns.RcodeBadVers
return m, errors.New("EDNS0 BADVERS")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.