default-gateway
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -5,3 +5,3 @@ "use strict"; | ||
if (["linux", "darwin", "win32"].includes(platform)) { | ||
if (["linux", "darwin", "win32", "android"].includes(platform)) { | ||
module.exports.v4 = () => require(`./${platform}`).v4(); | ||
@@ -8,0 +8,0 @@ module.exports.v6 = () => require(`./${platform}`).v6(); |
{ | ||
"name": "default-gateway", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "Get the default network gateway, cross-platform.", | ||
@@ -21,3 +21,4 @@ "author": "silverwind <me@silverwind.io>", | ||
"linux", | ||
"win32" | ||
"win32", | ||
"android" | ||
], | ||
@@ -24,0 +25,0 @@ "files": [ |
@@ -6,3 +6,3 @@ # default-gateway | ||
Obtains the machine's default gateway through `exec` calls to OS routing interfaces. Supports Linux, macOS and Windows. On Linux, the `ip` command must be available (usually provided by the `iproute2` package). | ||
Obtains the machine's default gateway through `exec` calls to OS routing interfaces. Supports Linux, macOS and Windows and Android. On Linux and Android, the `ip` command must be available (usually provided by the `iproute2` package). | ||
@@ -9,0 +9,0 @@ ## Installation |
7017