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 eaa6507cc9 ipnlocal: in Start() fast path, don't forget to send Prefs.
The resulting empty Prefs had AllowSingleHosts=false and
Routeall=false, so that on iOS if you did these steps:
- Login and leave running
- Terminate the frontend
- Restart the frontend (fast path restart, missing prefs)
- Set WantRunning=false
- Set WantRunning=true
...then you would have Tailscale running, but with no routes. You would
also accidentally disable the ExitNodeID/IP prefs (symptom: the current
exit node setting didn't appear in the UI), but since nothing
else worked either, you probably didn't notice.

The fix was easy enough. It turns out we already knew about the
problem, so this also fixes one of the BUG entries in state_test.

Fixes: #1918 (BUG-1) and some as-yet-unreported bugs with exit nodes.
Signed-off-by: Avery Pennarun <apenwarr@tailscale.com>
4 years ago
..
ipnlocal ipnlocal: in Start() fast path, don't forget to send Prefs. 4 years ago
ipnserver all: adapt to opaque netaddr types 4 years ago
ipnstate ipn/{ipnlocal,ipnstate}: add PeerStatus.ID stable ID to status --json output 4 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. 4 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: allow b to be nil in NewBackendServer 4 years ago
message_test.go ipn: allow b to be nil in NewBackendServer 4 years ago
prefs.go ipnlocal: accept a new opts.UpdatePrefs field. 4 years ago
prefs_clone.go Add prefs.LoggedOut to fix several state machine bugs. 4 years ago
prefs_test.go Add prefs.LoggedOut to fix several state machine bugs. 4 years ago
store.go wgkey: new package 4 years ago
store_test.go Add tstest.PanicOnLog(), and fix various problems detected by this. 5 years ago