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/ipn/ipnserver
Nick Khyl 7aef4fd44d ipn/ipn{local,server}: extract logic that determines the "best" Tailscale profile to use
In this PR, we further refactor LocalBackend and Unattended Mode to extract the logic that determines
which profile should be used at the time of the check, such as when a LocalAPI client connects or disconnects.
We then update (*LocalBackend).switchProfileLockedOnEntry to to switch to the profile returned by
(*LocalBackend).resolveBestProfileLocked() rather than to the caller-specified specified profile, and rename it
to switchToBestProfileLockedOnEntry.

This is done in preparation for updating (*LocalBackend).getBackgroundProfileIDLocked to support Always-On
mode by determining which profile to use based on which users, if any, are currently logged in and have an active
foreground desktop session.

Updates #14823
Updates tailscale/corp#26247

Signed-off-by: Nick Khyl <nickk@tailscale.com>
10 months ago
..
actor.go ipn/ipn{local,server}: extract logic that determines the "best" Tailscale profile to use 10 months ago
proxyconnect.go Switch logging service from log.tailscale.io to log.tailscale.com (#14398) 12 months ago
proxyconnect_js.go all: update copyright and license headers 3 years ago
server.go ipn/ipn{local,server}: move "staying alive in server mode" from ipnserver to LocalBackend 10 months ago
server_test.go all: use new LocalAPI client package location 10 months ago