summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDavid Anderson <dave@tailscale.com>2025-03-19 10:47:25 -0700
committerDave Anderson <dave@natulte.net>2025-04-03 14:37:14 -0700
commit5e4fae082844c35fcd73e9bb7628e08ffa3e97fa (patch)
treef3239436f13cfca274ada6511e99951a76882237
parent7a922c3f1f59f087796c767492842d4ca86893cc (diff)
downloadtailscale-5e4fae082844c35fcd73e9bb7628e08ffa3e97fa.tar.xz
tailscale-5e4fae082844c35fcd73e9bb7628e08ffa3e97fa.zip
net/tstun: don't try to set link attributes on android
Android >= 14 forbids the use of netlink sockets. Fixes #9836 Signed-off-by: David Anderson <dave@tailscale.com>
-rw-r--r--net/tstun/linkattrs_linux.go2
-rw-r--r--net/tstun/linkattrs_notlinux.go2
2 files changed, 3 insertions, 1 deletions
diff --git a/net/tstun/linkattrs_linux.go b/net/tstun/linkattrs_linux.go
index 681e79269..320385ba6 100644
--- a/net/tstun/linkattrs_linux.go
+++ b/net/tstun/linkattrs_linux.go
@@ -1,6 +1,8 @@
// Copyright (c) Tailscale Inc & AUTHORS
// SPDX-License-Identifier: BSD-3-Clause
+//go:build !android
+
package tstun
import (
diff --git a/net/tstun/linkattrs_notlinux.go b/net/tstun/linkattrs_notlinux.go
index 7a7b40fc2..77d227934 100644
--- a/net/tstun/linkattrs_notlinux.go
+++ b/net/tstun/linkattrs_notlinux.go
@@ -1,7 +1,7 @@
// Copyright (c) Tailscale Inc & AUTHORS
// SPDX-License-Identifier: BSD-3-Clause
-//go:build !linux
+//go:build !linux || android
package tstun