express-ipfilter
Advanced tools
Comparing version 0.0.9 to 0.0.10
@@ -65,2 +65,5 @@ /*! | ||
ipAddress = req.connection.remoteAddress; | ||
if(ipAddress.indexOf(':') !== -1){ | ||
ipAddress = ipAddress.split(':')[0]; | ||
} | ||
} | ||
@@ -67,0 +70,0 @@ |
{ | ||
"name": "express-ipfilter", | ||
"description": "A light-weight IP address based filtering system", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"author": "BaM Interactive", | ||
@@ -6,0 +6,0 @@ "dependencies": { |
@@ -9,3 +9,3 @@ IP Filter: A light-weight IP address based filtering system | ||
## Version | ||
0.0.9 | ||
0.0.10 | ||
@@ -76,2 +76,6 @@ ## Installation | ||
0.0.10 | ||
* Added support for IPs with port numbers | ||
0.0.9 | ||
@@ -78,0 +82,0 @@ |
@@ -86,2 +86,9 @@ /*global describe, it, after, before, beforeEach, afterEach*/ | ||
it('should allow whitelisted port ips',function(done){ | ||
this.req.connection.remoteAddress = '127.0.0.1:84849'; | ||
this.ipfilter( this.req, {}, function(){ | ||
done(); | ||
}); | ||
}); | ||
it('should deny all non-whitelisted ips', function( done ){ | ||
@@ -88,0 +95,0 @@ this.req.connection.remoteAddress = '127.0.0.2'; |
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
18703
463
112