mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2025-05-18 07:58:22 +08:00
Fix: should not return extra ip in msgToIP
This commit is contained in:
parent
e3614e0605
commit
9429d35b78
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user