tailscale/tstest/integration
Nick Khyl 6df5c8f32e 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>
2025-02-14 16:40:54 -06:00
..
nat wgengine/magicsock: disable raw disco by default; add envknob to enable 2024-09-16 11:06:33 -07:00
testcontrol all: add Node.HomeDERP int, phase out "127.3.3.40:$region" hack [capver 111] 2025-01-14 12:27:14 -08:00
vms all: fix new lint warnings from bumping staticcheck 2024-08-22 12:31:08 -07:00
gen_deps.go all: update tools that manage copyright headers 2023-01-27 15:36:29 -08:00
integration_test.go all: use new LocalAPI client package location 2025-02-05 14:41:42 -08:00
integration.go vnet: add control/derps to test, stateful firewall 2024-08-09 09:06:54 -07:00
tailscaled_deps_test_darwin.go all: use new LocalAPI client package location 2025-02-05 14:41:42 -08:00
tailscaled_deps_test_freebsd.go all: use new LocalAPI client package location 2025-02-05 14:41:42 -08:00
tailscaled_deps_test_linux.go all: use new LocalAPI client package location 2025-02-05 14:41:42 -08:00
tailscaled_deps_test_openbsd.go all: use new LocalAPI client package location 2025-02-05 14:41:42 -08:00
tailscaled_deps_test_windows.go various: keep tailscale connected when Always On mode is enabled on Windows 2025-02-14 16:40:54 -06:00