mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-22 08:51:41 +00:00

Android >=14 forbids the use of netlink sockets, and in some configurations can kill apps that try. Fixes #9836 Signed-off-by: David Anderson <dave@tailscale.com>
18 lines
350 B
Go
18 lines
350 B
Go
// Copyright (c) Tailscale Inc & AUTHORS
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
//go:build android || (!linux && !darwin && !freebsd)
|
|
|
|
package routetable
|
|
|
|
import (
|
|
"errors"
|
|
"runtime"
|
|
)
|
|
|
|
var errUnsupported = errors.New("cannot get route table on platform " + runtime.GOOS)
|
|
|
|
func Get(max int) ([]RouteEntry, error) {
|
|
return nil, errUnsupported
|
|
}
|