cmd/serve: update warning for sandboxed macOS builds (#11530)

licenses/android
Andrea Gottardo 8 months ago committed by GitHub
parent 66e4d843c1
commit 008676f76e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -497,9 +497,9 @@ func (e *serveEnv) applyWebServe(sc *ipn.ServeConfig, dnsName string, srvPort ui
} }
h.Text = text h.Text = text
case filepath.IsAbs(target): case filepath.IsAbs(target):
if version.IsSandboxedMacOS() { if version.IsMacAppStore() || version.IsMacSys() {
// don't allow path serving for now on macOS (2022-11-15) // 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 if sandboxed on macOS") 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) target = filepath.Clean(target)

Loading…
Cancel
Save