summaryrefslogtreecommitdiffhomepage
path: root/control/controlhttp/controlhttpserver
diff options
context:
space:
mode:
authorNick Khyl <nickk@tailscale.com>2025-02-13 16:46:24 -0600
committerNick Khyl <1761190+nickkhyl@users.noreply.github.com>2025-02-14 16:40:54 -0600
commit6df5c8f32e63170fa8ccd2c32ac26cf19906b79a (patch)
tree75b72e46ef3dcbfc721765f5c464aa2195cc199b /control/controlhttp/controlhttpserver
parente11ff284435d3789136e583b82c4e416f6c7f925 (diff)
downloadtailscale-6df5c8f32e63170fa8ccd2c32ac26cf19906b79a.tar.xz
tailscale-6df5c8f32e63170fa8ccd2c32ac26cf19906b79a.zip
various: keep tailscale connected when Always On mode is enabled on Windows
In this PR, we enable the registration of LocalBackend extensions to exclude code specific to certain platforms or environments. We then introduce desktopSessionsExt, which is included only in Windows builds and only if the ts_omit_desktop_sessions tag is disabled for the build. This extension tracks desktop sessions and switches to (or remains on) the appropriate profile when a user signs in or out, locks their screen, or disconnects a remote session. As desktopSessionsExt requires an ipn/desktop.SessionManager, we register it with tsd.System for the tailscaled subprocess on Windows. We also fix a bug in the sessionWatcher implementation where it attempts to close a nil channel on stop. Updates #14823 Updates tailscale/corp#26247 Signed-off-by: Nick Khyl <nickk@tailscale.com>
Diffstat (limited to 'control/controlhttp/controlhttpserver')
0 files changed, 0 insertions, 0 deletions