Skip to content

Commit

Permalink
fastip: unspecified ip
Browse files Browse the repository at this point in the history
  • Loading branch information
schzhn committed Apr 5, 2024
1 parent 381a38a commit ca462e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastip/fastest.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func (f *FastestAddr) ExchangeFastest(req *dns.Msg, ups []upstream.Upstream) (
for _, r := range replies {
for _, rr := range r.Resp.Answer {
ip := ipFromRR(rr)
if !ipSet.Has(ip) && ip != (netip.Addr{}) {
if ip.IsValid() && !ip.IsUnspecified() {
ipSet.Add(ip)
}
}
Expand Down

0 comments on commit ca462e8

Please sign in to comment.