bittorrent-relay
Advanced tools
Comparing version 3.0.6 to 3.0.7
@@ -349,3 +349,3 @@ import Debug from 'debug' | ||
const id = crypto.createHash('sha1').update(peer.host + ':' + peer.port).digest('hex') | ||
if(self.trackers[id]){ | ||
if(self.trackers[id] || self.id === id){ | ||
return | ||
@@ -630,4 +630,4 @@ } else { | ||
socket.takeOff() | ||
delete self.trackers[socket.id] | ||
console.log(code, reason) | ||
delete self.trackers[socket.id] | ||
} | ||
@@ -634,0 +634,0 @@ socket.on('open', socket.onOpen) |
{ | ||
"name": "bittorrent-relay", | ||
"description": "Uses the mainline dht to relay requests to other trackers in a swarm", | ||
"version": "3.0.6", | ||
"version": "3.0.7", | ||
"bin": { | ||
@@ -6,0 +6,0 @@ "bittorrent-relay": "./bin/cmd.js" |
47283