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.9 to 0.0.10

3

lib/ipfilter.js

@@ -65,2 +65,5 @@ /*!

ipAddress = req.connection.remoteAddress;
if(ipAddress.indexOf(':') !== -1){
ipAddress = ipAddress.split(':')[0];
}
}

@@ -67,0 +70,0 @@

2

package.json
{
"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';

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