1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-09-09 23:42:20 +08:00

commands/id: version was flipped

This commit is contained in:
Juan Batiz-Benet
2015-02-02 20:23:41 -08:00
parent b0a1cf0371
commit d13876ffe9

View File

@ -157,12 +157,12 @@ func printPeer(ps peer.Peerstore, p peer.ID) (interface{}, error) {
if v, err := ps.Get(p, "ProtocolVersion"); err == nil {
if vs, ok := v.(string); ok {
info.AgentVersion = vs
info.ProtocolVersion = vs
}
}
if v, err := ps.Get(p, "AgentVersion"); err == nil {
if vs, ok := v.(string); ok {
info.ProtocolVersion = vs
info.AgentVersion = vs
}
}