mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-28 08:47:42 +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)
|
// when not online, don't need to parse private keys (yet)
|
||||||
if !online {
|
if online {
|
||||||
skb, err := base64.StdEncoding.DecodeString(cfg.Identity.PrivKey)
|
skb, err := base64.StdEncoding.DecodeString(cfg.Identity.PrivKey)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
Reference in New Issue
Block a user