net/tsaddr: expand ephemeral nodes range to /64

Signed-off-by: Naman Sood <mail@nsood.in>
This commit is contained in:
Naman Sood 2021-04-19 15:54:53 -04:00 committed by GitHub
parent e9d24341e0
commit 71b7e48547
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,10 +77,10 @@ func Tailscale4To6Range() netaddr.IPPrefix {
// used for ephemeral IPv6-only Tailscale nodes. // used for ephemeral IPv6-only Tailscale nodes.
func TailscaleEphemeral6Range() netaddr.IPPrefix { func TailscaleEphemeral6Range() netaddr.IPPrefix {
// This IP range has no significance, beyond being a subset of // This IP range has no significance, beyond being a subset of
// TailscaleULARange. The bits from /48 to /104 were picked at // TailscaleULARange. The bits from /48 to /64 were picked at
// random, with the only criterion being to not be the conflict // random, with the only criterion being to not be the conflict
// with the Tailscale4To6Range above. // with the Tailscale4To6Range above.
ulaEph6Range.Do(func() { mustPrefix(&ulaEph6Range.v, "fd7a:115c:a1e0:7234:6e44:306d:2100::/104") }) ulaEph6Range.Do(func() { mustPrefix(&ulaEph6Range.v, "fd7a:115c:a1e0:efe3::/64") })
return ulaEph6Range.v return ulaEph6Range.v
} }