Skip to content

Commit

Permalink
Change from ipfs to p2p protocol
Browse files Browse the repository at this point in the history
multiformats/js-multiaddr#76 changed the
default protocol from ipfs to p2p.

js-multiaddr is a transitive dependency of peer-info, so in order
to get this change, we had to bump the version of peer-info.
  • Loading branch information
thomaseizinger committed Feb 1, 2019
1 parent b31690c commit 5c378c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/libp2p-in-the-browser/1/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"libp2p-spdy": "~0.12.1",
"libp2p-webrtc-star": "~0.15.3",
"libp2p-websocket-star": "~0.8.1",
"libp2p-websockets": "~0.12.0",
"peer-info": "~0.14.1"
"libp2p-websockets": "^0.12.0",
"peer-info": "~0.15.1"
}
}
2 changes: 1 addition & 1 deletion examples/libp2p-in-the-browser/1/src/create-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function createNode (callback) {
}

const peerIdStr = peerInfo.id.toB58String()
const ma = `/dns4/star-signal.cloud.ipfs.team/tcp/443/wss/p2p-webrtc-star/ipfs/${peerIdStr}`
const ma = `/dns4/star-signal.cloud.ipfs.team/tcp/443/wss/p2p-webrtc-star/p2p/${peerIdStr}`

peerInfo.multiaddrs.add(ma)

Expand Down

0 comments on commit 5c378c3

Please sign in to comment.