You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
10 months ago
..
nat wgengine/magicsock: disable raw disco by default; add envknob to enable 1 year ago
testcontrol all: add Node.HomeDERP int, phase out "127.3.3.40:$region" hack [capver 111] 11 months ago
vms all: fix new lint warnings from bumping staticcheck 1 year ago
gen_deps.go all: update tools that manage copyright headers 3 years ago
integration.go vnet: add control/derps to test, stateful firewall 1 year ago
integration_test.go all: use new LocalAPI client package location 10 months ago
tailscaled_deps_test_darwin.go all: use new LocalAPI client package location 10 months ago
tailscaled_deps_test_freebsd.go all: use new LocalAPI client package location 10 months ago
tailscaled_deps_test_linux.go all: use new LocalAPI client package location 10 months ago
tailscaled_deps_test_openbsd.go all: use new LocalAPI client package location 10 months ago
tailscaled_deps_test_windows.go various: keep tailscale connected when Always On mode is enabled on Windows 10 months ago