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/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>
3 years ago
..
dnscache.go net/dns/resolver: make DoH dialer use existing dnscache happy eyeball dialer 3 years ago
dnscache_test.go net/dns/resolver: make DoH dialer use existing dnscache happy eyeball dialer 3 years ago
messagecache.go all: use any instead of interface{} 3 years ago
messagecache_test.go all: use any instead of interface{} 3 years ago