mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-23 11:27:29 +00:00
ipn/{ipnext,ipnlocal}: add a SafeBackend interface
Updates #12614 Change-Id: I197e673666e86ea74c19e3935ed71aec269b6c94 Co-authored-by: Nick Khyl <nickk@tailscale.com> Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:

committed by
Brad Fitzpatrick

parent
25c4dc5fd7
commit
3d8533b5d0
@@ -17,7 +17,6 @@ import (
|
||||
"tailscale.com/feature"
|
||||
"tailscale.com/ipn"
|
||||
"tailscale.com/ipn/ipnext"
|
||||
"tailscale.com/tsd"
|
||||
"tailscale.com/types/logger"
|
||||
"tailscale.com/util/syspolicy"
|
||||
)
|
||||
@@ -53,7 +52,7 @@ type desktopSessionsExt struct {
|
||||
// newDesktopSessionsExt returns a new [desktopSessionsExt],
|
||||
// or an error if a [SessionManager] cannot be created.
|
||||
// It is registered with [ipnext.RegisterExtension] if the package is imported.
|
||||
func newDesktopSessionsExt(logf logger.Logf, sys *tsd.System) (ipnext.Extension, error) {
|
||||
func newDesktopSessionsExt(logf logger.Logf, _ ipnext.SafeBackend) (ipnext.Extension, error) {
|
||||
logf = logger.WithPrefix(logf, featureName+": ")
|
||||
sm, err := NewSessionManager(logf)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user