Commit Graph

8 Commits (dshynkev/dns-autoset)

Author SHA1 Message Date
David Anderson 657f331e8b net/dnscache: remove unnecessary lint warning. 4 years ago
Elias Naur ad0795efc2 net/dnscache: don't use the Go resolver on Android
The local resolver is not available for apps on Android.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
4 years ago
Brad Fitzpatrick bd0e20f351 net/dnscache: ignore annoying staticcheck check 4 years ago
Brad Fitzpatrick d44325295e net/dnscache: initialize the single Resolver more directly 4 years ago
David Crawshaw cac68fe102 net/dnscache: do not PreferGo on macOS/iOS
With this commit my iPhone can now DERP.
4 years ago
Brad Fitzpatrick 8f0fd01efd net/dnscache: add copyright header to test 4 years ago
David Crawshaw 5a1ce4adae net/dnscache: parse passed CIDR
Signed-off-by: David Crawshaw <crawshaw@tailscale.com>
4 years ago
Brad Fitzpatrick 2cff9016e4 net/dnscache: add overly simplistic DNS cache package for selective use
I started to write a full DNS caching resolver and I realized it was
overkill and wouldn't work on Windows even in Go 1.14 yet, so I'm
doing this tiny one instead for now, just for all our netcheck STUN
derp lookups, and connections to DERP servers. (This will be caching a
exactly 8 DNS entries, all ours.)

Fixes #145 (can be better later, of course)
4 years ago