mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 13:05:46 +00:00
net/dnscache: use PreferGo on Windows.
Updates https://github.com/tailscale/tailscale/issues/5161 Signed-off-by: Denton Gentry <dgentry@tailscale.com>
This commit is contained in:
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…
Reference in New Issue
Block a user