@browser-network/network
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -438,4 +438,4 @@ var __extends = (this && this.__extends) || (function () { | ||
connection.clientId || | ||
// The ip trying to connect is on our naughty list | ||
this.isRude((0, util_1.getIpFromRTCSDP)(answer.sdp)) || | ||
// The ip trying to connect is on our naughty list or not presenting an sdp string | ||
!answer.sdp || this.isRude((0, util_1.getIpFromRTCSDP)(answer.sdp)) || | ||
// We've reached our max number of allowed connections | ||
@@ -465,4 +465,4 @@ this.connections().length >= this.config.maxConnections) { | ||
this.hasConnection(offer.clientId) || | ||
// They're on our rude list | ||
this.isRude((0, util_1.getIpFromRTCSDP)(offer.sdp)) || | ||
// They're on our rude list or not presenting an sdp string | ||
!offer.sdp || this.isRude((0, util_1.getIpFromRTCSDP)(offer.sdp)) || | ||
// We have the max number of connections | ||
@@ -469,0 +469,0 @@ this.connections().length >= this.config.maxConnections) { |
{ | ||
"name": "@browser-network/network", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "A WebRTC based direct peer to peer network in the browser.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/src/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
553294