From e4fb98e255f541e2ec3af6f5669b1678a78fb058 Mon Sep 17 00:00:00 2001 From: Patrick Tsai Date: Mon, 16 Mar 2015 01:34:53 -0700 Subject: [PATCH] Consider additional section when merging RR for a service entry --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.go b/client.go index 670f4d4..a7359ae 100644 --- a/client.go +++ b/client.go @@ -236,7 +236,7 @@ func (c *client) query(params *QueryParam) error { select { case resp := <-msgCh: var inp *ServiceEntry - for _, answer := range resp.Answer { + for _, answer := range append(resp.Answer, resp.Extra...) { // TODO(reddaly): Check that response corresponds to serviceAddr? switch rr := answer.(type) { case *dns.PTR: