bittorrent-dht
Advanced tools
Comparing version 7.3.3 to 7.3.4
@@ -30,3 +30,5 @@ # Authors | ||
- Austin Middleton (xuset1@gmail.com) | ||
- Alexander Georgievskiy (galeksandrp@gmail.com) | ||
- Aaron Hill (aa1ronham@gmail.com) | ||
#### Generated by bin/update-authors.sh. |
{ | ||
"name": "bittorrent-dht", | ||
"description": "Simple, robust, BitTorrent DHT implementation", | ||
"version": "7.3.3", | ||
"version": "7.3.4", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Feross Aboukhadijeh", |
@@ -56,8 +56,9 @@ # bittorrent-dht [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] | ||
dht.on('peer', function (peer, infoHash, from) { | ||
console.log('found potential peer ' + peer.host + ':' + peer.port + ' through ' + from.address + ':' + from.port) | ||
}) | ||
// find peers for the given torrent info hash | ||
dht.lookup(parsed.infoHash) | ||
dht.on('peer', function (peer, infoHash, from) { | ||
console.log('found potential peer ' + peer.host + ':' + peer.port + ' through ' + from.host + ':' + from.port) | ||
}) | ||
``` | ||
@@ -64,0 +65,0 @@ |
80615
372