tailscale/ipn
Brad Fitzpatrick 07b6ffd55c ipn: only use Prefs, not computed stateKey, to determine server mode
When the service was running without a client (e.g. after a reboot)
and then the owner logs in and the GUI attaches, the computed state
key changed to "" (driven by frontend prefs), and then it was falling
out of server mode, despite the GUI-provided prefs still saying it
wanted server mode.

Also add some logging. And remove a scary "Access denied" from a
user-visible error, making the two possible already-in-use error
messages consistent with each other.
2020-11-02 21:13:51 -08:00
..
ipnserver ipn: only use Prefs, not computed stateKey, to determine server mode 2020-11-02 21:13:51 -08:00
ipnstate Revert "all: keep UserProfiles a slice instead of a map for longer" 2020-09-30 08:43:31 -07:00
policy ipn, ipn/policy: filter portlist to a short list of "interesting" ports 2020-04-01 10:03:44 -07:00
backend.go ipn, ipn/ipnserver: add IPN state for server in use, handle explicitly 2020-11-02 15:25:11 -08:00
doc.go Move Linux client & common packages into a public repo. 2020-02-09 09:32:57 -08:00
fake_test.go cmd/tailscale/cli: add basic 'down' subcommand 2020-08-25 18:54:29 -07:00
handle.go ipn: add Login backend command for sign-in with token 2020-07-14 13:09:36 +02:00
local.go ipn: only use Prefs, not computed stateKey, to determine server mode 2020-11-02 21:13:51 -08:00
loglines_test.go ipn: don't log redundant peer stats so often 2020-10-29 15:26:10 -07:00
message_test.go ipn: add Login backend command for sign-in with token 2020-07-14 13:09:36 +02:00
message.go ipn, ipn/ipnserver: add IPN state for server in use, handle explicitly 2020-11-02 15:25:11 -08:00
prefs_clone.go ipn: use cmd/cloner for Prefs.Clone 2020-10-19 12:15:49 -07:00
prefs_test.go Change some os.IsNotExist to errors.Is(err, os.ErrNotExist) for non-os errors. 2020-11-02 08:33:34 -08:00
prefs.go ipn: use cmd/cloner for Prefs.Clone 2020-10-19 12:15:49 -07:00
store_test.go Add tstest.PanicOnLog(), and fix various problems detected by this. 2020-05-13 23:12:35 -04:00
store.go ipn, ipnserver, cmd/tailscale: add "server mode" support on Windows 2020-10-12 14:28:21 -07:00