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

nat-upnp

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nat-upnp - npm Package Compare versions

Comparing version 0.2.7 to 0.2.8

8

lib/nat-upnp/ssdp.js

@@ -164,9 +164,11 @@ var dgram = require('dgram'),

// Remove /24 part from address
route.destination = route.destination.replace(/\/\d+$/, '');
if (route.destination) {
route.destination = route.destination.replace(/\/\d+$/, '');
}
if (route.destination && route.netmask) {
if (net.isIP(route.destination) && route.netmask) {
return ip.isEqual(ip.mask(remote.address, route.netmask),
ip.mask(route.destination, route.netmask));
}
if (route.destination) {
if (net.isIP(route.destination)) {
return ip.isEqual(remote.address, route.destination) ||

@@ -173,0 +175,0 @@ ip.isEqual(route.destination, '::');

{
"name": "nat-upnp",
"version": "0.2.7",
"version": "0.2.8",
"main": "lib/nat-upnp",

@@ -5,0 +5,0 @@ "author": "Fedor Indutny <fedor@indutny.com>",

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