You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/ipn/ipnlocal
Brad Fitzpatrick cc575fe4d6 net/dns: schedule DoH upgrade explicitly, fix Resolver.Addr confusion
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>
2 years ago
..
dnsconfig_test.go net/dns: schedule DoH upgrade explicitly, fix Resolver.Addr confusion 2 years ago
local.go net/dns: schedule DoH upgrade explicitly, fix Resolver.Addr confusion 2 years ago
local_test.go ipn/ipnlocal: make peerIPs return a sorted slice 2 years ago
loglines_test.go ipn/store: add common package for instantiating ipn.StateStores 2 years ago
peerapi.go ipn/ipnlocal: add capability for debugging peers over peerapi 2 years ago
peerapi_h2c.go ipn/ipnlocal: add HTTP/2 h2c server support to peerapi on non-mobile platforms 3 years ago
peerapi_macios_ext.go net/tsdial: move macOS/iOS peerapi sockopt logic from LocalBackend 3 years ago
peerapi_test.go ipn/ipnlocal: add start of inter-user Taildrop 2 years ago
ssh.go tempfork: temporarily fork gliderlabs/ssh and x/crypto/ssh 2 years ago
ssh_stub.go ssh: make it build on darwin 2 years ago
ssh_test.go ipn/ipnlocal: generate tailscaled-owned SSH keys as needed 2 years ago
state_test.go ipn/ipnlocal: do not process old status messages received out of order 2 years ago