mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 21:15:39 +00:00
cc575fe4d6
Two changes in one: * make DoH upgrades an explicitly scheduled send earlier, when we come up with the resolvers-and-delay send plan. Previously we were getting e.g. four Google DNS IPs and then spreading them out in time (for back when we only did UDP) but then later we added DoH upgrading at the UDP packet layer, which resulted in sometimes multiple DoH queries to the same provider running (each doing happy eyeballs dialing to 4x IPs themselves) for each of the 4 source IPs. Instead, take those 4 Google/Cloudflare IPs and schedule 5 things: first the DoH query (which can use all 4 IPs), and then each of the 4 IPs as UDP later. * clean up the dnstype.Resolver.Addr confusion; half the code was using it as an IP string (as documented) as half was using it as an IP:port (from some prior type we used), primarily for tests. Instead, document it was being primarily an IP string but also accepting an IP:port for tests, then add an accessor method on it to get the IPPort and use that consistently everywhere. Change-Id: Ifdd72b9e45433a5b9c029194d50db2b9f9217b53 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com> |
||
---|---|---|
.. | ||
publicdns | ||
resolvconffile | ||
resolver | ||
config.go | ||
debian_resolvconf.go | ||
direct_test.go | ||
direct.go | ||
flush_default.go | ||
flush_windows.go | ||
ini_test.go | ||
ini.go | ||
manager_default.go | ||
manager_freebsd.go | ||
manager_linux_test.go | ||
manager_linux.go | ||
manager_openbsd.go | ||
manager_test.go | ||
manager_windows.go | ||
manager.go | ||
nm.go | ||
noop.go | ||
openresolv.go | ||
osconfig.go | ||
registry_windows.go | ||
resolvconf-workaround.sh | ||
resolvconf.go | ||
resolvd.go | ||
resolved.go | ||
utf_test.go | ||
utf.go | ||
wsl_windows.go |