mirror of https://github.com/hashicorp/consul
bug: fix slice append value
Signed-off-by: cuishuang <imcusg@gmail.com>pull/21647/head
parent
5710cbd7ba
commit
fadfcb945f
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue