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/net
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>
4 years ago
..
dns net/dns: schedule DoH upgrade explicitly, fix Resolver.Addr confusion 4 years ago
dnscache net/dns/resolver: make DoH dialer use existing dnscache happy eyeball dialer 4 years ago
dnsfallback net/dnsfallback: update from 'go generate' 4 years ago
flowtrack all: use any instead of interface{} 4 years ago
interfaces net/interfaces: add FreeBSD default route lookup (portmapping, etc) 4 years ago
netcheck all: use any instead of interface{} 4 years ago
neterror net/{neterror,dns/resolver}: move PacketWasTruncated to neterror from DNS code 4 years ago
netknob all: disable TCP keep-alives on iOS/Android 4 years ago
netns net/netns: remove a useless probe of the "ip" command 4 years ago
netstat all: gofmt with Go 1.17 4 years ago
nettest net/nettest: deflake TestPipeTimeout 4 years ago
netutil net/netutil: add CheckIPForwardingLinux (#4301) 4 years ago
packet net/packet, wgengine/netstack: remove workaround for old gvisor ECN bug 4 years ago
portmapper all: use any instead of interface{} 4 years ago
proxymux net/proxymux: add a listener mux that can run SOCKS and HTTP on a single socket. 4 years ago
socks5 all: use any instead of interface{} 4 years ago
speedtest all: fix spelling mistakes 4 years ago
stun all: gofmt with Go 1.17 4 years ago
tlsdial envknob: add new package for all the strconv.ParseBool(os.Getenv(..)) 4 years ago
tsaddr net/tsaddr, wgengine/netstack: add IPv6 range that forwards to site-relative IPv4 4 years ago
tsdial cmd/tailscale: write fewer known_hosts, resolve ssh host to FQDN early 4 years ago
tshttpproxy net/tshttpproxy: ensure we pass the correct flags to WinHttpOpen on Win7 and Win8.0 4 years ago
tstun wgengine: inject packetbuffers rather than bytes (#4220) 4 years ago