Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
fix: last touches for dns websockets bootstrapers
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddias committed May 7, 2017
1 parent a856578 commit 3b680a7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
9 changes: 8 additions & 1 deletion examples/transfer-files/public/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,14 @@ function refreshPeerList () {
}

const peersAsHtml = peers
.map((peer) => peer.addr.toString())
.map((peer) => {
const addr = peer.addr.toString()
if (addr.indexOf('ipfs') >= 0) {
return addr
} else {
return addr + peer.peer.id.toB58String()
}
})
.map((addr) => {
return '<li>' + addr + '</li>'
}).join('')
Expand Down
4 changes: 1 addition & 3 deletions src/init-files/default-config-node.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
"/ip4/104.236.76.40/tcp/4001/ipfs/QmSoLV4Bbm51jM9C4gDYZQ9Cy3U6aXMJDAbzgu2fzaDs64",
"/ip4/178.62.158.247/tcp/4001/ipfs/QmSoLer265NRgSp2LA3dPaeykiS1J6DifTC88f5uVQKNAd",
"/ip4/178.62.61.185/tcp/4001/ipfs/QmSoLMeWqB7YGVLJN3pNLQpmmEk35v6wYtsMGLzSr5QBU3",
"/ip4/104.236.151.122/tcp/4001/ipfs/QmSoLju6m7xTh3DuokvT3886QRYqxAzb1kShaanJgW36yx",
"/dns4/strawberry.i.ipfs.io/wss/ipfs/QmWyLSnMHW2H6bmCG9e9PQq4ARve94JduvGjbutUuzx4a8",
"/dns4/blueberry.i.ipfs.io/wss/ipfs/QmVcj9MATxGTAFoQSbrJvZ9Fbs4Jzvrxy9hyJeRwbW8NeA"
"/ip4/104.236.151.122/tcp/4001/ipfs/QmSoLju6m7xTh3DuokvT3886QRYqxAzb1kShaanJgW36yx"
]
}
2 changes: 2 additions & 0 deletions test/http-api/spec/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ module.exports = (http) => {
url: '/api/v0/bootstrap/list'
}, (res) => {
expect(res.statusCode).to.be.eql(200)
console.log(res.result.Peers)
console.log(defaultList)
expect(res.result.Peers).to.deep.equal(defaultList)
done()
})
Expand Down

0 comments on commit 3b680a7

Please sign in to comment.