Comparing version 0.2.6 to 0.2.7
@@ -162,2 +162,6 @@ var dgram = require('dgram'), | ||
} | ||
// Remove /24 part from address | ||
route.destination = route.destination.replace(/\/\d+$/, ''); | ||
if (route.destination && route.netmask) { | ||
@@ -168,4 +172,2 @@ return ip.isEqual(ip.mask(remote.address, route.netmask), | ||
if (route.destination) { | ||
// Remove /24 part from address | ||
route.destination = route.destination.replace(/\/\d+$/, ''); | ||
return ip.isEqual(remote.address, route.destination) || | ||
@@ -172,0 +174,0 @@ ip.isEqual(route.destination, '::'); |
{ | ||
"name": "nat-upnp", | ||
"version": "0.2.6", | ||
"version": "0.2.7", | ||
"main": "lib/nat-upnp", | ||
@@ -5,0 +5,0 @@ "author": "Fedor Indutny <fedor@indutny.com>", |
19667