From fadfcb945f1d60f7a04c222cf35e96ad05ef1564 Mon Sep 17 00:00:00 2001 From: cuishuang Date: Fri, 23 Aug 2024 22:01:06 +0800 Subject: [PATCH] bug: fix slice append value Signed-off-by: cuishuang --- agent/dns.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/dns.go b/agent/dns.go index dd34b3b8bd..8658eea9d5 100644 --- a/agent/dns.go +++ b/agent/dns.go @@ -1048,7 +1048,7 @@ func (d *DNSServer) dispatch(remoteAddr net.Addr, req, resp *dns.Msg, cfg *dnsRe A: ip, } if req.Question[0].Qtype != dns.TypeA && req.Question[0].Qtype != dns.TypeANY { - resp.Extra = append(resp.Answer, aRecord) + resp.Extra = append(resp.Extra, aRecord) } else { resp.Answer = append(resp.Answer, aRecord) }