1
0
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:
Juan Batiz-Benet
2014-09-30 11:34:24 -07:00
parent 42a918d39a
commit c7af4a6fa2

View File

@ -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