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>
main
David Anderson 1 year ago committed by Dave Anderson
parent 7a922c3f1f
commit 5e4fae0828
  1. 2
      net/tstun/linkattrs_linux.go
  2. 2
      net/tstun/linkattrs_notlinux.go

@ -1,6 +1,8 @@
// Copyright (c) Tailscale Inc & AUTHORS
// SPDX-License-Identifier: BSD-3-Clause
//go:build !android
package tstun
import (

@ -1,7 +1,7 @@
// Copyright (c) Tailscale Inc & AUTHORS
// SPDX-License-Identifier: BSD-3-Clause
//go:build !linux
//go:build !linux || android
package tstun

Loading…
Cancel
Save