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
Avery Pennarun 6fd4e8d244 ipnlocal: fix switching users while logged in + Stopped.
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>
3 years ago
..
ipnlocal ipnlocal: fix switching users while logged in + Stopped. 3 years ago
ipnserver ipn{,/ipnserver}: delay JSON marshaling of ipn.Notifies 3 years ago
ipnstate ipn/{ipnlocal,ipnstate}: add PeerStatus.ID stable ID to status --json output 3 years ago
localapi ipn/ipnlocal, etc: require file sharing capability to send/recv files 4 years ago
policy ipn/policy: mark peerapi4 and peerapi6 as interesting services 4 years ago
backend.go ipnlocal: accept a new opts.UpdatePrefs field. 3 years ago
doc.go Move Linux client & common packages into a public repo. 5 years ago
fake_test.go ipn{,/ipnlocal}, cmd/tailscale/cli: don't check pref reverts on initial up 4 years ago
handle.go ipn{,/ipnlocal}, cmd/tailscale/cli: don't check pref reverts on initial up 4 years ago
message.go ipn{,/ipnserver}: delay JSON marshaling of ipn.Notifies 3 years ago
message_test.go ipn{,/ipnserver}: delay JSON marshaling of ipn.Notifies 3 years ago
prefs.go ipnlocal: accept a new opts.UpdatePrefs field. 3 years ago
prefs_clone.go Add prefs.LoggedOut to fix several state machine bugs. 3 years ago
prefs_test.go Add prefs.LoggedOut to fix several state machine bugs. 3 years ago
store.go wgkey: new package 4 years ago
store_test.go Add tstest.PanicOnLog(), and fix various problems detected by this. 4 years ago