ipn/ipnlocal: make peerapi work on iOS again

It didn't have a storage directory.

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick
2021-03-31 14:08:32 -07:00
parent 31c7745631
commit c3bee0b722
2 changed files with 22 additions and 3 deletions

View File

@@ -10,8 +10,13 @@ import (
"os"
"path/filepath"
"runtime"
"sync/atomic"
)
// IOSSharedDir is a string set by the iOS app on start
// containing a directory we can read/write in.
var IOSSharedDir atomic.Value
// LegacyConfigPath returns the path used by the pre-tailscaled
// "relaynode" daemon's config file. It returns the empty string for
// platforms where relaynode never ran.