mirror of
https://github.com/tailscale/tailscale.git
synced 2025-03-28 12:02:23 +00:00
Net/DNS/Publicdns: update the IPv6 range that we use to recreate route endpoint for control D
In this commit I updated the Ipv6 range we use to generate Control D DOH ip, we were using the NextDNSRanges to generate Control D DOH ip, updated to use the correct range. Updates: #7946 Signed-off-by: Kevin Liang <kevinliang@tailscale.com>
This commit is contained in:
parent
6877d44965
commit
7f83f9fc83
@ -125,8 +125,8 @@ func DoHIPsOfBase(dohBase string) []netip.Addr {
|
|||||||
return []netip.Addr{
|
return []netip.Addr{
|
||||||
controlDv4One,
|
controlDv4One,
|
||||||
controlDv4Two,
|
controlDv4Two,
|
||||||
controlDv6Gen(nextDNSv6RangeA.Addr(), pathStr),
|
controlDv6Gen(controlDv6RangeA.Addr(), pathStr),
|
||||||
controlDv6Gen(nextDNSv6RangeB.Addr(), pathStr),
|
controlDv6Gen(controlDv6RangeB.Addr(), pathStr),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
@ -121,8 +121,8 @@ func TestDoHIPsOfBase(t *testing.T) {
|
|||||||
want: ips(
|
want: ips(
|
||||||
"76.76.2.22",
|
"76.76.2.22",
|
||||||
"76.76.10.22",
|
"76.76.10.22",
|
||||||
"2a07:a8c0:0:6:7b5b:5949:35ad:0",
|
"2606:1a40:0:6:7b5b:5949:35ad:0",
|
||||||
"2a07:a8c1:0:6:7b5b:5949:35ad:0",
|
"2606:1a40:1:6:7b5b:5949:35ad:0",
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -130,8 +130,8 @@ func TestDoHIPsOfBase(t *testing.T) {
|
|||||||
want: ips(
|
want: ips(
|
||||||
"76.76.2.22",
|
"76.76.2.22",
|
||||||
"76.76.10.22",
|
"76.76.10.22",
|
||||||
"2a07:a8c0:0:ffff:ffff:ffff:ffff:0",
|
"2606:1a40:0:ffff:ffff:ffff:ffff:0",
|
||||||
"2a07:a8c1:0:ffff:ffff:ffff:ffff:0",
|
"2606:1a40:1:ffff:ffff:ffff:ffff:0",
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user