From c49ac47b5dca534133e3621e8a3883ff34db8814 Mon Sep 17 00:00:00 2001 From: Sebastian Hildebrandt Date: Thu, 7 Jan 2021 13:05:06 +0100 Subject: [PATCH] networkInterfaceDefault() fixed CMD popup (windows) --- CHANGELOG.md | 1 + docs/history.html | 7 ++++++- docs/index.html | 2 +- lib/network.js | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2aa77a3..39e2e2e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page. | Version | Date | Comment | | -------------- | -------------- | -------- | +| 4.34.5 | 2020-01-07 | `networkInterfaceDefault()` fixed CMD popup (windows) | | 4.34.4 | 2020-01-06 | `system()` fixed vitrual catch error | | 4.34.3 | 2020-01-06 | `graphics()` fixed non nvidia-smi controllers (win) | | 4.34.2 | 2020-01-05 | `system()` uuid lowercase as in uuid() | diff --git a/docs/history.html b/docs/history.html index 3193a55..55eb480 100644 --- a/docs/history.html +++ b/docs/history.html @@ -83,6 +83,11 @@ + + 4.34.5 + 2020-01-07 + networkInterfaceDefault() fixed CMD popup (windows) + 4.34.4 2020-01-06 @@ -2054,4 +2059,4 @@ - + \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index c408c61..2d83469 100644 --- a/docs/index.html +++ b/docs/index.html @@ -169,7 +169,7 @@
systeminformation
-
Current Version: 4.34.4
+
Current Version: 4.34.5
diff --git a/lib/network.js b/lib/network.js index 85f1fcc..90b49e1 100644 --- a/lib/network.js +++ b/lib/network.js @@ -66,7 +66,7 @@ function getDefaultNetworkInterface() { // https://www.inetdaemon.com/tutorials/internet/ip/routing/default_route.shtml let defaultIp = ''; const cmd = 'netstat -r'; - const result = execSync(cmd); + const result = execSync(cmd, util.execOptsWin); const lines = result.toString().split(os.EOL); lines.forEach(line => { line = line.replace(/\s+/g, ' ').trim();