tailscale/net/dnscache
Brad Fitzpatrick ecea6cb994 net/dns/resolver: make DoH dialer use existing dnscache happy eyeball dialer
Simplify the ability to reason about the DoH dialing code by reusing the
dnscache's dialer we already have.

Also, reduce the scope of the "ip" variable we don't want to close over.

This necessarily adds a new field to dnscache.Resolver:
SingleHostStaticResult, for when the caller already knows the IPs to be
returned.

Change-Id: I9f2aef7926f649137a5a3e63eebad6a3fffa48c0
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2022-04-18 13:18:39 -07:00
..
dnscache.go net/dns/resolver: make DoH dialer use existing dnscache happy eyeball dialer 2022-04-18 13:18:39 -07:00
dnscache_test.go net/dns/resolver: make DoH dialer use existing dnscache happy eyeball dialer 2022-04-18 13:18:39 -07:00
messagecache.go all: use any instead of interface{} 2022-03-17 11:35:09 -07:00
messagecache_test.go all: use any instead of interface{} 2022-03-17 11:35:09 -07:00