Socket
Socket
Sign inDemoInstall

default-gateway

Package Overview
Dependencies
2
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.2.0 to 2.2.1

7

freebsd.js

@@ -17,8 +17,3 @@ "use strict";

(stdout || "").trim().split("\n").some(line => {
let target, gateway, _flags, iface;
if (family === "v4") {
[target, gateway, _flags, iface] = line.split(/ +/) || [];
} else {
[target, gateway, _flags, iface] = line.split(/ +/) || [];
}
const [target, gateway, _flags, iface] = line.split(/ +/) || [];
if (dests.includes(target) && gateway && net.isIP(gateway)) {

@@ -25,0 +20,0 @@ result = {gateway: gateway, interface: (iface ? iface : null)};

2

package.json
{
"name": "default-gateway",
"version": "2.2.0",
"version": "2.2.1",
"description": "Get the default network gateway, cross-platform.",

@@ -5,0 +5,0 @@ "author": "silverwind <me@silverwind.io>",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc