// don't allow path serving for now on macOS (2022-11-15)
returnerrors.New("path serving is not supported if sandboxed on macOS")
ifversion.IsMacAppStore()||version.IsMacSys(){
// The Tailscale network extension cannot serve arbitrary paths on macOS due to sandbox restrictions (2024-03-26)
returnerrors.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.")