bittorrent-relay
Advanced tools
Comparing version 13.0.2 to 13.0.3
{ | ||
"name": "bittorrent-relay", | ||
"description": "Uses the mainline dht to relay requests to other trackers in a swarm", | ||
"version": "13.0.2", | ||
"version": "13.0.3", | ||
"bin": { | ||
@@ -6,0 +6,0 @@ "bittorrent-relay": "./bin/cmd.js" |
@@ -696,8 +696,4 @@ import Debug from 'debug' | ||
const useAddress = `${peer.host}:${peer.port}` | ||
if(this.address === useAddress){ | ||
return | ||
} | ||
const id = crypto.createHash('sha1').update(useAddress).digest('hex') | ||
if(self.id === id){ | ||
if(self.address === useAddress || self.id === id){ | ||
return | ||
@@ -704,0 +700,0 @@ } |
102603
2705