Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bittorrent-relay

Package Overview
Dependencies
Maintainers
1
Versions
142
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bittorrent-relay - npm Package Compare versions

Comparing version 11.0.2 to 11.0.3

2

package.json
{
"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){

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc