1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-09-09 17:22:21 +08:00

Merge pull request #2256 from ipfs/feat/gx-libp2p

vendor libp2p with gx
This commit is contained in:
Jeromy Johnson
2016-02-05 16:52:02 -08:00
396 changed files with 735 additions and 17097 deletions

View File

@ -12,11 +12,11 @@ import (
cmds "github.com/ipfs/go-ipfs/commands"
core "github.com/ipfs/go-ipfs/core"
ic "github.com/ipfs/go-ipfs/p2p/crypto"
"github.com/ipfs/go-ipfs/p2p/peer"
identify "github.com/ipfs/go-ipfs/p2p/protocol/identify"
kb "github.com/ipfs/go-ipfs/routing/kbucket"
u "github.com/ipfs/go-ipfs/util"
ic "gx/ipfs/QmUBogf4nUefBjmYjn6jfsfPJRkmDGSeMhNj4usRKq69f4/go-libp2p/p2p/crypto"
"gx/ipfs/QmUBogf4nUefBjmYjn6jfsfPJRkmDGSeMhNj4usRKq69f4/go-libp2p/p2p/peer"
identify "gx/ipfs/QmUBogf4nUefBjmYjn6jfsfPJRkmDGSeMhNj4usRKq69f4/go-libp2p/p2p/protocol/identify"
)
const offlineIdErrorMessage = `'ipfs id' currently cannot query information on remote
@ -205,7 +205,7 @@ func printSelf(node *core.IpfsNode) (interface{}, error) {
info.Addresses = append(info.Addresses, s)
}
}
info.ProtocolVersion = identify.IpfsVersion
info.ProtocolVersion = identify.LibP2PVersion
info.AgentVersion = identify.ClientVersion
return info, nil
}