summaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorAvery Pennarun <apenwarr@tailscale.com>2021-05-05 23:28:29 -0400
committerAvery Pennarun <apenwarr@tailscale.com>2021-05-12 23:05:36 -0400
commit71d8aa64f68b16b686c85dadd35ba990de706f9a (patch)
tree520296ebb4467cae2e80bbb2a6577c21e82ca3dc /scripts
parentfc2e6c7d7173487464dac07c39080d423a1f454d (diff)
downloadtailscale-apenwarr/relogin.tar.xz
tailscale-apenwarr/relogin.zip
ipnlocal: fix switching users while logged in + Stopped.apenwarr/relogin
This code path is very tricky since it was originally designed for the "re-authenticate to refresh my keys" use case, which didn't want to lose the original session even if the refresh cycle failed. This is why it acts differently from the Logout(); Login(); case. Maybe that's too fancy, considering that it probably never quite worked at all, for switching between users without logging out first. But it works now. This was more invasive than I hoped, but the necessary fixes actually removed several other suspicious BUG: lines from state_test.go, so I'm pretty confident this is a significant net improvement. Fixes tailscale/corp#1756. Signed-off-by: Avery Pennarun <apenwarr@tailscale.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions