mirror of
https://github.com/coredns/coredns.git
synced 2025-11-01 02:33:14 -04:00
plugin/k8s_external: Persist tc bit from lookup to client response (#4716)
* persist reponse tc bit from lookup to client Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
This commit is contained in:
@@ -55,11 +55,11 @@ func (e *External) Transfer(zone string, serial uint32) (<-chan []dns.RR, error)
|
||||
if svcs[i].TargetStrip == 0 {
|
||||
// Add Service A/AAAA records
|
||||
s := request.Request{Req: &dns.Msg{Question: []dns.Question{{Name: name}}}}
|
||||
as := e.a(ctx, []msg.Service{svcs[i]}, s)
|
||||
as, _ := e.a(ctx, []msg.Service{svcs[i]}, s)
|
||||
if len(as) > 0 {
|
||||
ch <- as
|
||||
}
|
||||
aaaas := e.aaaa(ctx, []msg.Service{svcs[i]}, s)
|
||||
aaaas, _ := e.aaaa(ctx, []msg.Service{svcs[i]}, s)
|
||||
if len(aaaas) > 0 {
|
||||
ch <- aaaas
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user