initial load peers fix
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
ycc 2024-05-28 18:05:41 +02:00
parent 9179021544
commit 78a8b797e6

View File

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