Skip to content
This repository has been archived by the owner on Jun 10, 2020. It is now read-only.

Commit

Permalink
fix: fix multiaddr bug, update packages
Browse files Browse the repository at this point in the history
  • Loading branch information
mkg20001 committed Oct 23, 2018
1 parent 72e3426 commit 2898286
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,19 @@
},
"homepage": "https://github.com/mkg20001/js-libp2p-websocket-star-multi#readme",
"dependencies": {
"async": "^2.6.0",
"debug": "^3.1.0",
"libp2p-websocket-star": "^0.7.6",
"mafmt": "^4.0.0",
"multiaddr": "^3.0.2",
"async": "^2.6.1",
"debug": "^4.1.0",
"libp2p-websocket-star": "^0.9.0",
"mafmt": "^6.0.2",
"multiaddr": "^5.0.0",
"once": "^1.4.0"
},
"devDependencies": {
"aegir": "^12.4.0",
"chai": "^4.1.2",
"aegir": "^15.3.1",
"chai": "^4.2.0",
"dirty-chai": "^2.0.1",
"libp2p-websocket-star-rendezvous": "github:libp2p/js-libp2p-websocket-star-rendezvous",
"lodash": "^4.17.5"
"lodash": "^4.17.11"
},
"contributors": [
"mkg20001 <mkg20001@gmail.com>"
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class WebsocketStarMulti { // listen on multiple websocket star servers without
return cb()
})
setTimeout(next, this.opt.timeout || 5000, new Error('Timeout'))
server.listen(multiaddr(server.url).encapsulate('ipfs/' + id), next)
server.listen(multiaddr(server.url).encapsulate('/ipfs/' + id), next)
}), () => {
if (!listener.online.length && !this.opt.ignore_no_online) {
const e = new Error("Couldn't listen on any of the servers")
Expand Down

0 comments on commit 2898286

Please sign in to comment.