From 2067eb688fe54fb13520cf3d4bc3085bd55a1f35 Mon Sep 17 00:00:00 2001 From: gdm85 Date: Wed, 16 Oct 2019 13:01:02 +0200 Subject: [PATCH] Fix Opcode never assigned in jsonDNS.PrepareReply --- json-dns/unmarshal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/json-dns/unmarshal.go b/json-dns/unmarshal.go index 4bda705..c18a303 100644 --- a/json-dns/unmarshal.go +++ b/json-dns/unmarshal.go @@ -38,7 +38,7 @@ func PrepareReply(req *dns.Msg) *dns.Msg { reply := new(dns.Msg) reply.Id = req.Id reply.Response = true - reply.Opcode = reply.Opcode + reply.Opcode = req.Opcode reply.RecursionDesired = req.RecursionDesired reply.RecursionAvailable = req.RecursionDesired reply.CheckingDisabled = req.CheckingDisabled