We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12174eb commit 6d6b1f7Copy full SHA for 6d6b1f7
src/index.js
@@ -12,7 +12,6 @@ const Swarm = require('libp2p-swarm')
12
const PeerId = require('peer-id')
13
const PeerInfo = require('peer-info')
14
const PeerBook = require('peer-book')
15
-const mafmt = require('mafmt')
16
const multiaddr = require('multiaddr')
17
18
exports = module.exports
@@ -158,7 +157,7 @@ class Node extends EventEmitter {
158
157
const maOld = []
159
const maNew = []
160
this.peerInfo.multiaddrs.forEach((ma) => {
161
- if (!mafmt.IPFS.matches(ma)) {
+ if (!ma.getPeerId()) {
162
maOld.push(ma)
163
maNew.push(ma.encapsulate('/ipfs/' + this.peerInfo.id.toB58String()))
164
}
0 commit comments