mirror of
https://github.com/tailscale/tailscale.git
synced 2025-01-05 14:57:49 +00:00
ipn: fix crash generating machine key on new installs
Regression from d6ad41dceaf20f (for #732). Probably also means eab6e9ea4e45 was unnecessary, but it's fine. Fixes #887
This commit is contained in:
parent
01ee638cca
commit
cc3259f8d9
@ -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
|
||||
}
|
||||
}()
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user