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

ipv4

Package Overview
Dependencies
Maintainers
3
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ipv4 - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

12

lib/ipv4.js

@@ -16,12 +16,12 @@ /* ================================================================

var network = require('os').networkInterfaces()
var network = require('os').networkInterfaces();
for (var n in network) {
var ipv4 = network[n].filter(function(i) {
return i.family === 'IPv4' && !i.internal
})
return i.family === 'IPv4' && !i.internal;
});
if (ipv4.length) {
module.exports = ipv4[0].address
return
module.exports = ipv4[0].address;
break;
}

@@ -31,2 +31,2 @@ }

// Fallback
module.exports = '0.0.0.0'
module.exports = '0.0.0.0';
{
"name": "ipv4",
"version": "0.0.4",
"version": "0.0.5",
"description": "ipv4",

@@ -5,0 +5,0 @@ "bin": {

Sorry, the diff of this file is not supported yet

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