Consider additional section when merging RR for a service entry

This commit is contained in:
Patrick Tsai 2015-03-16 01:34:53 -07:00
parent e23dbc9d18
commit e4fb98e255

View File

@ -236,7 +236,7 @@ func (c *client) query(params *QueryParam) error {
select { select {
case resp := <-msgCh: case resp := <-msgCh:
var inp *ServiceEntry var inp *ServiceEntry
for _, answer := range resp.Answer { for _, answer := range append(resp.Answer, resp.Extra...) {
// TODO(reddaly): Check that response corresponds to serviceAddr? // TODO(reddaly): Check that response corresponds to serviceAddr?
switch rr := answer.(type) { switch rr := answer.(type) {
case *dns.PTR: case *dns.PTR: