net/dnscache: use PreferGo on Windows.

Updates https://github.com/tailscale/tailscale/issues/5161

Signed-off-by: Denton Gentry <dgentry@tailscale.com>
pull/8278/head
Denton Gentry 1 year ago committed by Denton Gentry
parent 6554a0cbec
commit 64f16f7f38

@ -143,10 +143,6 @@ func (r *Resolver) cloudHostResolver() (v *net.Resolver, ok bool) {
switch runtime.GOOS { switch runtime.GOOS {
case "android", "ios", "darwin": case "android", "ios", "darwin":
return nil, false return nil, false
case "windows":
// TODO(bradfitz): remove this restriction once we're using Go 1.19
// which supports net.Resolver.PreferGo on Windows.
return nil, false
} }
ip := cloudenv.Get().ResolverIP() ip := cloudenv.Get().ResolverIP()
if ip == "" { if ip == "" {

Loading…
Cancel
Save