bittorrent-relay
Advanced tools
Comparing version 12.0.0 to 12.0.1
{ | ||
"name": "bittorrent-relay", | ||
"description": "Uses the mainline dht to relay requests to other trackers in a swarm", | ||
"version": "12.0.0", | ||
"version": "12.0.1", | ||
"bin": { | ||
@@ -6,0 +6,0 @@ "bittorrent-relay": "./bin/cmd.js" |
@@ -979,7 +979,4 @@ import Debug from 'debug' | ||
} | ||
if(socket.server){ | ||
socket.hash = message.hash | ||
delete message.hash | ||
socket.send(JSON.stringify({hash: self.hash, key: self.key, address: self.address, web: self.web, host: self.host, port: self.port, domain: self.domain, relay: useRelay, status: self.status, sig: self.sig, action: 'session', reply: false})) | ||
} | ||
const useHash = message.hash | ||
delete message.hash | ||
const useRelay = message.relay | ||
@@ -997,2 +994,6 @@ delete message.relay | ||
socket.session = true | ||
if(socket.server){ | ||
socket.hash = useHash | ||
socket.send(JSON.stringify({hash: self.hash, key: self.key, address: self.address, web: self.web, host: self.host, port: self.port, domain: self.domain, relay: useRelay, status: self.status, sig: self.sig, action: 'session', reply: false})) | ||
} | ||
self.sockets.set(socket.hash, socket) | ||
@@ -999,0 +1000,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
102143
2685