mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-28 00:39:31 +08:00
Bugfix: !online -> online
Caused panic.
This commit is contained in:
@ -183,7 +183,7 @@ func initIdentity(cfg *config.Config, online bool) (*peer.Peer, error) {
|
||||
)
|
||||
|
||||
// when not online, don't need to parse private keys (yet)
|
||||
if !online {
|
||||
if online {
|
||||
skb, err := base64.StdEncoding.DecodeString(cfg.Identity.PrivKey)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
Reference in New Issue
Block a user