tailscale/net/dnscache
Peter Cai 4597ec1037 net/dnscache: Handle 4-in-6 addresses in DNS responses
On Android, the system resolver can return IPv4 addresses as IPv6-mapped
addresses (i.e. `::ffff:a.b.c.d`). After the switch to `net/netip`
(19008a3), this case is no longer handled and a response like this will
be seen as failure to resolve any IPv4 addresses.

Handle this case by simply calling `Unmap()` on the returned IPs. Fixes #5698.

Signed-off-by: Peter Cai <peter@typeblog.net>
2022-10-23 08:41:51 -07:00
..
dnscache.go net/dnscache: Handle 4-in-6 addresses in DNS responses 2022-10-23 08:41:51 -07:00
dnscache_test.go envknob: support changing envknobs post-init 2022-09-15 15:04:02 -07:00
messagecache.go all: fix spelling mistakes 2022-09-29 13:36:13 -07:00
messagecache_test.go all: use any instead of interface{} 2022-03-17 11:35:09 -07:00