ipn: fix crash generating machine key on new installs
Regression from (for
Probably also means was unnecessary, but it's fine.
Fixes
@@ -708,7 +708,9 @@ func (b *LocalBackend) initMachineKeyLocked() (err error) {
if err != nil {
return
}
+ if b.prefs != nil && b.prefs.Persist != nil {
b.prefs.Persist.LegacyFrontendPrivateMachineKey = b.machinePrivKey
+ }
}()
}
