bittorrent-relay
Advanced tools
Comparing version 11.0.2 to 11.0.3
{ | ||
"name": "bittorrent-relay", | ||
"description": "Uses the mainline dht to relay requests to other trackers in a swarm", | ||
"version": "11.0.2", | ||
"version": "11.0.3", | ||
"bin": { | ||
@@ -6,0 +6,0 @@ "bittorrent-relay": "./bin/cmd.js" |
@@ -68,5 +68,4 @@ import Debug from 'debug' | ||
this.limit.clientConnections = this.limit.clientConnections || 0 | ||
this.limit.refreshConnections = this.limit.clientConnections ? this.limit.clientConnections + (this.limit.refresh ? this.limit.refreshConnections || 1000 : 1000) : 0 | ||
this.limit.refreshConnections = this.limit.clientConnections ? this.limit.clientConnections + (this.limit.refreshConnections || 1000) : 0 | ||
this.limit.refreshLimit = this.limit.refreshLimit || 0 | ||
this.limit.clientOrRefresh = Boolean(this.limit.clientOrRefresh) | ||
this.timer.activity = this.timer.activity || 5 * 60 * 1000 | ||
@@ -577,4 +576,3 @@ this.clientCount = 0 | ||
self.refresh = setInterval(() => { | ||
const check = self.limit.clientOrRefresh ? self.limit.refreshConnections : self.limit.clientConnections | ||
if(self.clientCount <= check){ | ||
if(self.clientCount <= self.limit.clientConnections){ | ||
if(self.limit.refreshLimit){ | ||
@@ -581,0 +579,0 @@ if(self.clientCount <= self.limit.refreshLimit){ |
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
100911
2670