Socket
Socket
Sign inDemoInstall

default-gateway

Package Overview
Dependencies
16
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.2.0 to 7.2.1

2

index.js

@@ -16,3 +16,3 @@ import {isIP} from "node:net";

if (gateway && isIP(gateway)) { // default via 1.2.3.4 dev en0
return {gateway, int: (iface ?? null)};
return {gateway, version: family, int: (iface ?? null)};
} else if (iface && !gateway) { // default via dev en0

@@ -19,0 +19,0 @@ const interfaces = networkInterfaces();

{
"name": "default-gateway",
"version": "7.2.0",
"version": "7.2.1",
"description": "Get the default network gateway, cross-platform.",

@@ -5,0 +5,0 @@ "author": "silverwind",

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