Socket
Socket
Sign inDemoInstall

discovery-swarm

Package Overview
Dependencies
Maintainers
4
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

discovery-swarm - npm Package Compare versions

Comparing version 6.0.1 to 6.1.0

7

index.js

@@ -51,2 +51,3 @@ var discovery = require('discovery-channel')

this._listening = false
this._keepExistingConnections = (opts.keepExistingConnections === true)

@@ -420,2 +421,8 @@ this._peersIds = {}

if (old && self._keepExistingConnections) {
self.emit('redundant-connection', connection, info)
connection.destroy()
return
}
if (old) {

@@ -422,0 +429,0 @@ debug('duplicate connections detected in handshake, dropping one')

2

package.json
{
"name": "discovery-swarm",
"version": "6.0.1",
"version": "6.1.0",
"description": "A network swarm that uses discovery-channel to find peers",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -41,3 +41,4 @@ # discovery-swarm

maxConnections: 0, // max number of connections.
whitelist: [] // array of ip addresses to restrict connections to
whitelist: [], // array of ip addresses to restrict connections to
keepExistingConnections: false // by default, prefer tcp by dropping old utp connections
}

@@ -44,0 +45,0 @@ ```

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