tailscale/ipn/ipnserver
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
..
server_test.go all: use testing.T.TempDir 2020-10-02 20:31:31 -07:00
server.go ipn: only use Prefs, not computed stateKey, to determine server mode 2020-11-02 21:13:51 -08:00