mirror of
https://github.com/tailscale/tailscale.git
synced 2025-10-08 23:49:56 +00:00
ipn: fix crash generating machine key on new installs
Regression fromd6ad41dcea
(for #732). Probably also meanseab6e9ea4e
was unnecessary, but it's fine. Fixes #887
This commit is contained in:
@@ -708,7 +708,9 @@ func (b *LocalBackend) initMachineKeyLocked() (err error) {
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
b.prefs.Persist.LegacyFrontendPrivateMachineKey = b.machinePrivKey
|
||||
if b.prefs != nil && b.prefs.Persist != nil {
|
||||
b.prefs.Persist.LegacyFrontendPrivateMachineKey = b.machinePrivKey
|
||||
}
|
||||
}()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user