File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ import (
44
44
discovery "gx/ipfs/QmQHmMFyhfp2ZXnbYWqAWhEideDCNDM6hzJwqCU29Y5zV2/go-libp2p/p2p/discovery"
45
45
p2pbhost "gx/ipfs/QmQHmMFyhfp2ZXnbYWqAWhEideDCNDM6hzJwqCU29Y5zV2/go-libp2p/p2p/host/basic"
46
46
rhost "gx/ipfs/QmQHmMFyhfp2ZXnbYWqAWhEideDCNDM6hzJwqCU29Y5zV2/go-libp2p/p2p/host/routed"
47
+ identify "gx/ipfs/QmQHmMFyhfp2ZXnbYWqAWhEideDCNDM6hzJwqCU29Y5zV2/go-libp2p/p2p/protocol/identify"
47
48
ping "gx/ipfs/QmQHmMFyhfp2ZXnbYWqAWhEideDCNDM6hzJwqCU29Y5zV2/go-libp2p/p2p/protocol/ping"
48
49
ds "gx/ipfs/QmRWDav6mzWseLWeYfVd5fvUKiVe9xNH29YfMF438fG364/go-datastore"
49
50
goprocess "gx/ipfs/QmSF8fPo3jgVBAy8fpdjjYqgG87dkJgUprRBHRd2tmfgpP/goprocess"
@@ -86,6 +87,10 @@ const (
86
87
onlineMode
87
88
)
88
89
90
+ func init () {
91
+ identify .ClientVersion = "go-ipfs/" + config .CurrentVersionNumber + "/" + config .CurrentCommit
92
+ }
93
+
89
94
// IpfsNode is IPFS Core module. It represents an IPFS instance.
90
95
type IpfsNode struct {
91
96
Original file line number Diff line number Diff line change @@ -117,6 +117,10 @@ test_expect_success "Welcome readme doesn't exists" '
117
117
test_must_fail ipfs cat /ipfs/$HASH_WELCOME_DOCS/readme
118
118
'
119
119
120
+ test_expect_success " ipfs id agent string contains correct version" '
121
+ ipfs id -f "<aver>" | grep $(ipfs version -n)
122
+ '
123
+
120
124
test_expect_success " clean up ipfs dir" '
121
125
rm -rf "$IPFS_PATH"
122
126
'
You can’t perform that action at this time.
0 commit comments