Fix: should not return extra ip in msgToIP

This commit is contained in:
Dreamacro 2019-03-03 17:23:59 +08:00
parent 7683271fe6
commit 7f0c7d7802

View file

@ -184,15 +184,6 @@ func (r *Resolver) msgToIP(msg *D.Msg) []net.IP {
} }
} }
for _, extra := range msg.Extra {
switch record := extra.(type) {
case *D.AAAA:
ips = append(ips, record.AAAA)
case *D.A:
ips = append(ips, record.A)
}
}
return ips return ips
} }