ipn/ipnlocal: fix cert storage in Kubernetes

We were checking against the wrong directory, instead if we
have a custom store configured just use that.

Fixes #7588
Fixes #7665

Signed-off-by: Maisem Ali <maisem@tailscale.com>
This commit is contained in:
Maisem Ali
2023-03-22 15:10:04 -07:00
committed by Maisem Ali
parent ec90522a53
commit 8a11f76a0d
3 changed files with 15 additions and 5 deletions

View File

@@ -299,7 +299,7 @@ func NewLocalBackend(logf logger.Logf, logID logid.PublicID, store ipn.StateStor
statsLogf: logger.LogOnChange(logf, 5*time.Minute, time.Now),
e: e,
pm: pm,
store: pm.Store(),
store: store,
dialer: dialer,
backendLogID: logID,
state: ipn.NoState,