mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-26 03:25:35 +00:00
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:
parent
294ceb513c
commit
baa7937998
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user