mirror of
https://github.com/tailscale/tailscale.git
synced 2026-04-03 14:13:12 -04:00
Stop clearing device_id, device_fqdn, and device_ips on every startup (in SetInitialKeys and resetContainerbootState). This preserves the old device identity so the operator can read device_id during auth key reissue to delete the stale device, avoiding '-1','-2' hostname suffixes. Expand ClearReissueAuthKey to also clear device state and tsnet profile state (_machinekey, _current-profile, profile-*) during reissue, so the proxy starts fresh with the new auth key on next boot.