peer db default load fix
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
ycc 2024-05-28 17:32:26 +02:00
parent d049f87cdc
commit 9179021544

View File

@ -190,7 +190,9 @@ func LoadIdentity(filename string, password string) (*Identity, error) {
if err != nil { if err != nil {
return nil, err return nil, err
} }
if id.Peers.DbFile != "" {
id.Peers.LoadPeers(password) id.Peers.LoadPeers(password)
}
GetConfig().me = &id GetConfig().me = &id
return &id, err return &id, err
} }