From 7a922c3f1f59f087796c767492842d4ca86893cc Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 19 Mar 2025 10:47:25 -0700 Subject: [PATCH] net/routetable: don't try to fetch the route table on android Android >=14 forbids the use of netlink sockets, and in some configurations can kill apps that try. Fixes #9836 Signed-off-by: David Anderson --- net/routetable/routetable_linux.go | 2 +- net/routetable/routetable_other.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/routetable/routetable_linux.go b/net/routetable/routetable_linux.go index 88dc8535a..0b2cb305d 100644 --- a/net/routetable/routetable_linux.go +++ b/net/routetable/routetable_linux.go @@ -1,7 +1,7 @@ // Copyright (c) Tailscale Inc & AUTHORS // SPDX-License-Identifier: BSD-3-Clause -//go:build linux +//go:build linux && !android package routetable diff --git a/net/routetable/routetable_other.go b/net/routetable/routetable_other.go index 35c83e374..e547ab0ac 100644 --- a/net/routetable/routetable_other.go +++ b/net/routetable/routetable_other.go @@ -1,7 +1,7 @@ // Copyright (c) Tailscale Inc & AUTHORS // SPDX-License-Identifier: BSD-3-Clause -//go:build !linux && !darwin && !freebsd +//go:build android || (!linux && !darwin && !freebsd) package routetable