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/types
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
..
dnstype net/dns: schedule DoH upgrade explicitly, fix Resolver.Addr confusion 2 years ago
empty types/empty: add Message, stop using mysterious *struct{} 4 years ago
flagtype types/flagtype: fix bug showing the default port value (shown in --help) 4 years ago
ipproto net/packet, wgengine/filter: support SCTP 3 years ago
key control/noise: use key.Machine{Public,Private} as appropriate. 3 years ago
logger tailcfg: add omitempty to all fields of Hostinfo (#4360) 2 years ago
netmap all: use Go 1.18's strings.Cut 2 years ago
nettype wgengine/magicsock, tstest/natlab: start hooking up natlab to magicsock 4 years ago
opt all: use any instead of interface{} 2 years ago
pad32 net/portmapper: add NAT-PMP client, move port mapping service probing 3 years ago
persist types/persist: use new node key type. 3 years ago
preftype types/preftype: don't use iota for consts persisted to disk 3 years ago
structs types/structs: add structs.Incomparable annotation, use it where applicable 4 years ago
views types/views: rename Generic to Unwrap 2 years ago