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

express-ipfilter

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-ipfilter - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

8

lib/ipfilter.js

@@ -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 @@

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