net/interfaces: return IPv6 addresses from LocalAddresses.

In practice, we already provide IPv6 endpoint addresses via netcheck,
and that address is likely to match a local address anyway (i.e. no NAT66).
The comment at that piece of the code mentions needing to figure out a
good priority ordering, but that only applies to non-active-discovery
clients, who already don't do anything with IPv6 addresses.

Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
David Anderson 2020-12-15 19:11:40 -08:00 committed by Dave Anderson
parent 294ceb513c
commit baa7937998

View File

@ -94,11 +94,6 @@ func LocalAddresses() (regular, loopback []string, err error) {
if !ok { if !ok {
continue continue
} }
if ip.Is6() {
// TODO(crawshaw): IPv6 support.
// Easy to do here, but we need good endpoint ordering logic.
continue
}
// TODO(apenwarr): don't special case cgNAT. // TODO(apenwarr): don't special case cgNAT.
// In the general wireguard case, it might // In the general wireguard case, it might
// very well be something we can route to // very well be something we can route to