From 91790215447de7911bdfbb25ac1acd9fa4aefe01 Mon Sep 17 00:00:00 2001 From: ycc Date: Tue, 28 May 2024 17:32:26 +0200 Subject: [PATCH] peer db default load fix --- client/identity.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/identity.go b/client/identity.go index fc59027..5d23e32 100644 --- a/client/identity.go +++ b/client/identity.go @@ -190,7 +190,9 @@ func LoadIdentity(filename string, password string) (*Identity, error) { if err != nil { return nil, err } - id.Peers.LoadPeers(password) + if id.Peers.DbFile != "" { + id.Peers.LoadPeers(password) + } GetConfig().me = &id return &id, err }