summaryrefslogtreecommitdiffhomepage
path: root/control/controlhttp/controlhttpserver/controlhttpserver.go
diff options
context:
space:
mode:
authorNick Khyl <nickk@tailscale.com>2025-02-12 17:43:53 -0600
committerNick Khyl <1761190+nickkhyl@users.noreply.github.com>2025-02-12 19:06:40 -0600
commit7aef4fd44d7c6a00cf880519a36be8ce543ee575 (patch)
treedad361c558c5091bbe1a21bf0ff2a528788d30e3 /control/controlhttp/controlhttpserver/controlhttpserver.go
parentb7f508fccf8bb267bcab6d87b03e400b02161961 (diff)
downloadtailscale-7aef4fd44d7c6a00cf880519a36be8ce543ee575.tar.xz
tailscale-7aef4fd44d7c6a00cf880519a36be8ce543ee575.zip
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>
Diffstat (limited to 'control/controlhttp/controlhttpserver/controlhttpserver.go')
0 files changed, 0 insertions, 0 deletions