mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-21 22:21:41 +00:00
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>
This commit is contained in:
parent
a464439658
commit
ad0795efc2
@ -31,6 +31,11 @@ func preferGoResolver() bool {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// The local resolver is not available on Android.
|
||||||
|
if runtime.GOOS == "android" {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
// Otherwise, the Go resolver is fine and slightly preferred
|
// Otherwise, the Go resolver is fine and slightly preferred
|
||||||
// since it's lighter, not using cgo calls & threads.
|
// since it's lighter, not using cgo calls & threads.
|
||||||
return true
|
return true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user