ipn/ipnlocal: fix cert fetching on macOS GUI platforms

And clarify the directory they get written to when under the sandbox.

Fixes #3667

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick
2022-01-06 07:43:24 -08:00
committed by Brad Fitzpatrick
parent 28bf53f502
commit 3690bfecb0
2 changed files with 2 additions and 2 deletions

View File

@@ -2121,7 +2121,7 @@ func (b *LocalBackend) TailscaleVarRoot() string {
return b.varRoot
}
switch runtime.GOOS {
case "ios", "android":
case "ios", "android", "darwin":
dir, _ := paths.AppSharedDir.Load().(string)
return dir
}