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 4ef207833b ipn: !WantRunning + !LoggedOut should not be idle on startup.
There was logic that would make a "down" tailscale backend (ie.
!WantRunning) refuse to do any network activity. Unfortunately, this
makes the macOS and iOS UI unable to render correctly if they start
while !WantRunning.

Now that we have Prefs.LoggedOut, use that instead. So `tailscale down`
will still allow the controlclient to connect its authroutine, but
pause the maproutine. `tailscale logout` will entirely stop all
activity.

This new behaviour is not obviously correct; it's a bit annoying that
`tailsale down` doesn't terminate all activity like you might expect.
Maybe we should redesign the UI code to render differently when
disconnected, and then revert this change.

Signed-off-by: Avery Pennarun <apenwarr@tailscale.com>
3 years ago
..
ipnlocal ipn: !WantRunning + !LoggedOut should not be idle on startup. 3 years ago
ipnserver cmd/tailscaled: don't block ipnserver startup behind engine init on Windows 3 years ago
ipnstate ipn/ipnlocal, etc: require file sharing capability to send/recv files 3 years ago
localapi ipn/ipnlocal, etc: require file sharing capability to send/recv files 3 years ago
policy ipn/policy: mark peerapi4 and peerapi6 as interesting services 3 years ago
backend.go ipn: mock controlclient.Client; big ipn.Backend state machine test. 3 years ago
doc.go Move Linux client & common packages into a public repo. 4 years ago
fake_test.go ipn{,/ipnlocal}, cmd/tailscale/cli: don't check pref reverts on initial up 3 years ago
handle.go ipn{,/ipnlocal}, cmd/tailscale/cli: don't check pref reverts on initial up 3 years ago
message.go ipn: define NewBackendServer nil as not affecting Backend's NotifyCallback 3 years ago
message_test.go ipn: define NewBackendServer nil as not affecting Backend's NotifyCallback 3 years ago
prefs.go Add prefs.LoggedOut to fix several state machine bugs. 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 3 years ago
store_test.go Add tstest.PanicOnLog(), and fix various problems detected by this. 4 years ago