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

request-ip

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

request-ip - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

8

dist/index.js

@@ -30,3 +30,3 @@ "use strict";

for (var i = forwardedIps.length - 1; i >= 0; i -= 1) {
for (var i = 0; i < forwardedIps.length; i++) {
if (is.ip(forwardedIps[i])) {

@@ -111,2 +111,8 @@ return forwardedIps[i];

if (req.headers) {
if (is.ip(req.headers['Cf-Pseudo-IPv4'])) {
return req.headers['Cf-Pseudo-IPv4'];
}
}
if (is.existy(req.raw)) {

@@ -113,0 +119,0 @@ return getClientIp(req.raw);

2

package.json
{
"name": "request-ip",
"version": "3.0.1",
"version": "3.0.2",
"description": "A small Node.js module to retrieve the request's IP address",

@@ -5,0 +5,0 @@ "keywords": [

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