ipn: fix crash generating machine key on new installs
Regression frompull/888/headd6ad41dcea
(for #732). Probably also meanseab6e9ea4e
was unnecessary, but it's fine. Fixes #887
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…
Reference in New Issue