Merge pull request #31 from yinghau76/master

Consider additional section when merging RR for a service entry
This commit is contained in:
Armon Dadgar 2015-03-17 10:42:56 -07:00
commit 2b439d3701

View File

@ -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: