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/ipnlocal
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
..
c2n.go wgengine/magicsock: make debug-level stuff not logged by default 2 years ago
cert.go ipn/{ipnlocal,localapi}: move most of cert.go to ipnlocal 2 years ago
cert_js.go ipn/ipnlocal, wgengine/netstack: start handling ports for future serving 2 years ago
cert_test.go ipn/{ipnlocal,localapi}: move most of cert.go to ipnlocal 2 years ago
dnsconfig_test.go ipn/ipnlocal: use ipn.PrefsView 2 years ago
local.go ipn/ipnlocal: ensure Persist information is saved to server mode start state 2 years ago
local_test.go tailcfg: add Node.UnsignedPeerAPIOnly to let server mark node as peerapi-only 2 years ago
loglines_test.go ipn/ipnlocal: use ipn.PrefsView 2 years ago
network-lock.go tailcfg: add Node.UnsignedPeerAPIOnly to let server mark node as peerapi-only 2 years ago
network-lock_test.go cmd/tailscale,ipn: implement lock sign command 2 years ago
peerapi.go all: fix spelling mistakes 2 years ago
peerapi_h2c.go all: remove old +build tags 2 years ago
peerapi_macios_ext.go all: remove old +build tags 2 years ago
peerapi_test.go ipn/ipnlocal: use ipn.PrefsView 2 years ago
serve.go ipn/ipnlocal: implement the reverse proxy HTTP handler type 2 years ago
ssh.go all: remove old +build tags 2 years ago
ssh_stub.go ipn/ipnlocal: add c2n method to get SSH username candidates 2 years ago
ssh_test.go all: remove old +build tags 2 years ago
state_test.go ipn: make Notify.Prefs be a *ipn.PrefsView 2 years ago