cmd/tailscale/cli: include GOOS in BSD warning message

instead of just lowercase "bsd"

Updates #1475

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick 2021-03-15 20:21:21 -07:00 committed by Brad Fitzpatrick
parent 380a3526f6
commit 98ab533324

View File

@ -182,7 +182,7 @@ 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.")
warnf("Subnet routing and exit nodes only work with additional manual configuration on %v, and is not currently officially supported.", runtime.GOOS)
}
}
routes := make([]netaddr.IPPrefix, 0, len(routeMap))