fix(search): show torrent page from remote peer

This commit is contained in:
Alexey Kasyanchuk
2018-03-05 04:01:08 +03:00
parent 857bc66c7f
commit 1c626fa2bf
7 changed files with 84 additions and 29 deletions

View File

@ -204,6 +204,13 @@ class p2p {
return
return peers.map(peer => ({address: peer.address, port: peer.port}))
}
find(peer)
{
return this.peersList().find((localPeer) => {
return localPeer.address === peer.address
})
}
}
module.exports = p2p