interfaces: create android impl (#11784)

-Move Android impl into interfaces_android.go
-Instead of using ip route to get the interface name, use the one passed in by Android (ip route is restricted in Android 13+ per termux/termux-app#2993)

Follow-up will be to do the same for router

Fixes tailscale/corp#19215
Fixes tailscale/corp#19124

Signed-off-by: kari-ts <kari@tailscale.com>
This commit is contained in:
kari-ts
2024-04-18 12:49:02 -07:00
committed by GitHub
parent 7132b782d4
commit 048cb61dd0
3 changed files with 186 additions and 43 deletions

View File

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