cmd/tailscale/cli: warn if using subnet routing on BSD

Fixes #1475.

Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
David Anderson 2021-03-15 15:29:12 -07:00
parent 232cfda280
commit 380a3526f6
1 changed files with 3 additions and 0 deletions

View File

@ -181,6 +181,9 @@ func runUp(ctx context.Context, args []string) error {
}
if len(routeMap) > 0 {
checkIPForwarding()
if isBSD(runtime.GOOS) {
warnf("Subnet routing and exit nodes only work with additional manual configuration on bsd, and is not currently officially supported.")
}
}
routes := make([]netaddr.IPPrefix, 0, len(routeMap))
for r := range routeMap {