You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/net/dnscache
Brad Fitzpatrick 1b6bc37f28 net/dnscache: fix case where Resolver could return zero IP with single IPv6 address
The controlhttp dialer with a ControlDialPlan IPv6 entry was hitting a
case where the dnscache Resolver was returning an netip.Addr zero
value, where it should've been returning the IPv6 address.

We then tried to dial "invalid IP:80", which would immediately fail,
at least locally.

Mostly this was causing spammy logs when debugging other stuff.

Updates tailscale/corp#32534

Change-Id: If8b9a20f10c1a6aa8a662c324151d987fe9bd2f8
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2 months ago
..
dnscache.go net/dnscache: fix case where Resolver could return zero IP with single IPv6 address 2 months ago
dnscache_test.go net/dnscache: fix case where Resolver could return zero IP with single IPv6 address 2 months ago
messagecache.go util/cmpx: delete now that we're using Go 1.22 2 years ago
messagecache_test.go net/*: remove Windows exceptions for when Resolver.PreferGo didn't work 6 months ago