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
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>
2 years ago
..
ipnlocal ipn/ipnlocal: ensure Persist information is saved to server mode start state 2 years ago
ipnserver all: remove old +build tags 2 years ago
ipnstate cmd/tailscale: add emoji for illumos in status subcommand 2 years ago
localapi ipn/{ipnlocal,localapi}: move most of cert.go to ipnlocal 2 years ago
policy ipn/policy: treat DNS service as interesting so it's not filtered out 3 years ago
store all: remove old +build tags 2 years ago
backend.go ipn: add missing check for nil Notify.Prefs 2 years ago
doc.go ipn: add WebServerConfig, add views 2 years ago
fake_test.go ipn: make Notify.Prefs be a *ipn.PrefsView 2 years ago
ipn_clone.go ipn/ipnlocal: start implementing web server bits of serve 2 years ago
ipn_view.go ipn/ipnlocal: start implementing web server bits of serve 2 years ago
message.go all: gofmt for Go 1.19 2 years ago
message_test.go ipn: remove handle.go 2 years ago
prefs.go ipn: add WebServerConfig, add views 2 years ago
prefs_test.go ipn: make Notify.Prefs be a *ipn.PrefsView 2 years ago
store.go ipn/ipnlocal: start implementing web server bits of serve 2 years ago