tailscale/ipn
Aaron Klotz 73b8968404 ipn/ipnlocal: ensure Persist information is saved to server mode start state
Numerous issues have been filed concerning an inability to install and run
Tailscale headlessly in unattended mode, particularly after rebooting. The
server mode `Prefs` stored in `server-state.conf` were not being updated with
`Persist` state once the node had been succesfully logged in.

Users have been working around this by finagling with the GUI to make it force
a state rewrite. This patch makes that unnecessary by ensuring the required
server mode state is updated when prefs are updated by the control client.

Fixes https://github.com/tailscale/tailscale/issues/3186

Signed-off-by: Aaron Klotz <aaron@tailscale.com>
2022-11-10 10:43:40 -06:00
..
ipnlocal ipn/ipnlocal: ensure Persist information is saved to server mode start state 2022-11-10 10:43:40 -06:00
ipnserver all: remove old +build tags 2022-11-04 07:25:42 -07:00
ipnstate cmd/tailscale: add emoji for illumos in status subcommand 2022-08-28 08:29:31 -07:00
localapi ipn/{ipnlocal,localapi}: move most of cert.go to ipnlocal 2022-11-07 21:50:04 -08:00
policy ipn/policy: treat DNS service as interesting so it's not filtered out 2021-12-03 12:55:54 -08:00
store all: remove old +build tags 2022-11-04 07:25:42 -07:00
backend.go ipn: add missing check for nil Notify.Prefs 2022-11-04 04:12:53 +05:00
doc.go ipn: add WebServerConfig, add views 2022-11-09 06:17:45 -08:00
fake_test.go ipn: make Notify.Prefs be a *ipn.PrefsView 2022-11-04 04:00:26 +05:00
ipn_clone.go ipn/ipnlocal: start implementing web server bits of serve 2022-11-09 07:38:10 -08:00
ipn_view.go ipn/ipnlocal: start implementing web server bits of serve 2022-11-09 07:38:10 -08:00
message_test.go ipn: remove handle.go 2022-10-19 20:52:22 -07:00
message.go all: gofmt for Go 1.19 2022-08-02 10:08:05 -07:00
prefs_test.go ipn: make Notify.Prefs be a *ipn.PrefsView 2022-11-04 04:00:26 +05:00
prefs.go ipn: add WebServerConfig, add views 2022-11-09 06:17:45 -08:00
store.go ipn/ipnlocal: start implementing web server bits of serve 2022-11-09 07:38:10 -08:00