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

Fixes #1475.

Signed-off-by: David Anderson <danderson@tailscale.com>
pull/1507/head
David Anderson 3 years ago
parent 232cfda280
commit 380a3526f6

@ -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 {

Loading…
Cancel
Save