Skip to content

Commit f2d9e04

Browse files
chore: change from ipfs to p2p protocol
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.
1 parent b31690c commit f2d9e04

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/libp2p-in-the-browser/1/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"libp2p-spdy": "~0.12.1",
2424
"libp2p-webrtc-star": "~0.15.3",
2525
"libp2p-websocket-star": "~0.8.1",
26-
"libp2p-websockets": "~0.12.0",
27-
"peer-info": "~0.14.1"
26+
"libp2p-websockets": "^0.12.0",
27+
"peer-info": "~0.15.1"
2828
}
2929
}

examples/libp2p-in-the-browser/1/src/create-node.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function createNode (callback) {
1010
}
1111

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

1515
peerInfo.multiaddrs.add(ma)
1616

0 commit comments

Comments
 (0)