From 008676f76e7ae2b5675a87f098baf69413769626 Mon Sep 17 00:00:00 2001 From: Andrea Gottardo Date: Wed, 27 Mar 2024 09:03:52 -0700 Subject: [PATCH] cmd/serve: update warning for sandboxed macOS builds (#11530) --- cmd/tailscale/cli/serve_v2.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/tailscale/cli/serve_v2.go b/cmd/tailscale/cli/serve_v2.go index ffb55e6bc..3af7ef88d 100644 --- a/cmd/tailscale/cli/serve_v2.go +++ b/cmd/tailscale/cli/serve_v2.go @@ -497,9 +497,9 @@ func (e *serveEnv) applyWebServe(sc *ipn.ServeConfig, dnsName string, srvPort ui } h.Text = text case filepath.IsAbs(target): - if version.IsSandboxedMacOS() { - // don't allow path serving for now on macOS (2022-11-15) - return errors.New("path serving is not supported if sandboxed on macOS") + if version.IsMacAppStore() || version.IsMacSys() { + // The Tailscale network extension cannot serve arbitrary paths on macOS due to sandbox restrictions (2024-03-26) + return errors.New("Path serving is not supported on macOS due to sandbox restrictions. To use Tailscale Serve on macOS, switch to the open-source tailscaled distribution. See https://tailscale.com/kb/1065/macos-variants for more information.") } target = filepath.Clean(target)