ipn/ipnserver paths: add paths.LegacyStateFilePath

Moving this information into a centralized place so that it is accessible to
code in subsequent commits.

Updates #3011

Signed-off-by: Aaron Klotz <aaron@tailscale.com>
This commit is contained in:
Aaron Klotz
2021-10-06 13:27:35 -06:00
parent 11fdb14c53
commit 6425f497b1
3 changed files with 12 additions and 2 deletions

View File

@@ -81,3 +81,8 @@ func ensureStateDirPerms(dir string) error {
}
return os.Chmod(dir, perm)
}
// LegacyStateFilePath is not applicable to UNIX; it is just stubbed out.
func LegacyStateFilePath() string {
return ""
}