This repository was archived by the owner on Feb 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +12
-5
lines changed
examples/transfer-files/public/js Expand file tree Collapse file tree 3 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ function onDrop (event) {
156
156
. join ( '<br>' )
157
157
} )
158
158
. catch ( onError )
159
- }
159
+ } )
160
160
}
161
161
162
162
/*
@@ -187,7 +187,14 @@ function refreshPeerList () {
187
187
}
188
188
189
189
const peersAsHtml = peers
190
- . map ( ( peer ) => peer . addr . toString ( ) )
190
+ . map ( ( peer ) => {
191
+ const addr = peer . addr . toString ( )
192
+ if ( addr . indexOf ( 'ipfs' ) >= 0 ) {
193
+ return addr
194
+ } else {
195
+ return addr + peer . peer . id . toB58String ( )
196
+ }
197
+ } )
191
198
. map ( ( addr ) => {
192
199
return '<li>' + addr + '</li>'
193
200
} ) . join ( '' )
Original file line number Diff line number Diff line change 25
25
" /ip4/104.236.76.40/tcp/4001/ipfs/QmSoLV4Bbm51jM9C4gDYZQ9Cy3U6aXMJDAbzgu2fzaDs64" ,
26
26
" /ip4/178.62.158.247/tcp/4001/ipfs/QmSoLer265NRgSp2LA3dPaeykiS1J6DifTC88f5uVQKNAd" ,
27
27
" /ip4/178.62.61.185/tcp/4001/ipfs/QmSoLMeWqB7YGVLJN3pNLQpmmEk35v6wYtsMGLzSr5QBU3" ,
28
- " /ip4/104.236.151.122/tcp/4001/ipfs/QmSoLju6m7xTh3DuokvT3886QRYqxAzb1kShaanJgW36yx" ,
29
- " /dns4/strawberry.i.ipfs.io/wss/ipfs/QmWyLSnMHW2H6bmCG9e9PQq4ARve94JduvGjbutUuzx4a8" ,
30
- " /dns4/blueberry.i.ipfs.io/wss/ipfs/QmVcj9MATxGTAFoQSbrJvZ9Fbs4Jzvrxy9hyJeRwbW8NeA"
28
+ " /ip4/104.236.151.122/tcp/4001/ipfs/QmSoLju6m7xTh3DuokvT3886QRYqxAzb1kShaanJgW36yx"
31
29
]
32
30
}
Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ module.exports = (http) => {
27
27
url : '/api/v0/bootstrap/list'
28
28
} , ( res ) => {
29
29
expect ( res . statusCode ) . to . be . eql ( 200 )
30
+ console . log ( res . result . Peers )
31
+ console . log ( defaultList )
30
32
expect ( res . result . Peers ) . to . deep . equal ( defaultList )
31
33
done ( )
32
34
} )
You can’t perform that action at this time.
0 commit comments