express-ipfilter
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -69,5 +69,4 @@ /*! | ||
var matchClientIp = function(req){ | ||
var ip = getClientIp(req) // Grab the client's IP address | ||
, mode = settings.mode.toLowerCase() | ||
var matchClientIp = function(ip){ | ||
var mode = settings.mode.toLowerCase() | ||
, allowedIp = false | ||
@@ -100,2 +99,3 @@ , notBannedIp = false | ||
return function(req, res, next) { | ||
var ip = getClientIp(req); | ||
// If no IPs were specified, skip | ||
@@ -105,3 +105,3 @@ // this middleware | ||
if(matchClientIp(req)) { | ||
if(matchClientIp(ip)) { | ||
// Grant access | ||
@@ -108,0 +108,0 @@ if(settings.log) { |
{ | ||
"name": "express-ipfilter", | ||
"description": "A light-weight IP address based filtering system", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"author": "BaM Interactive", | ||
@@ -6,0 +6,0 @@ "dependencies": { |
@@ -9,7 +9,4 @@ IP Filter: A light-weight IP address based filtering system | ||
## Version | ||
0.0.5 | ||
0.0.6 | ||
## Requirements | ||
- [Node](http://github.com/ry/node) | ||
## Installation | ||
@@ -19,3 +16,3 @@ | ||
npm install ipfilter | ||
npm install express-ipfilter | ||
@@ -77,2 +74,6 @@ ## Usage with Express | ||
0.0.6 | ||
* Fixed a bug when using console output | ||
0.0.5 | ||
@@ -79,0 +80,0 @@ |
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
93
13053