Skip to content

Commit

Permalink
bug: fix slice append value
Browse files Browse the repository at this point in the history
Signed-off-by: cuishuang <[email protected]>
  • Loading branch information
cuishuang committed Aug 23, 2024
1 parent 5710cbd commit fadfcb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agent/dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit fadfcb9

Please sign in to comment.