networkInterfaceDefault() fixed CMD popup (windows)

This commit is contained in:
Sebastian Hildebrandt 2021-01-07 13:05:06 +01:00
parent dc0a7a5498
commit c49ac47b5d
4 changed files with 9 additions and 3 deletions

View File

@ -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() |

View File

@ -83,6 +83,11 @@
</tr>
</thead>
<tbody>
<tr>
<th scope="row">4.34.5</th>
<td>2020-01-07</td>
<td><span class="code">networkInterfaceDefault()</span> fixed CMD popup (windows)</td>
</tr>
<tr>
<th scope="row">4.34.4</th>
<td>2020-01-06</td>
@ -2054,4 +2059,4 @@
</body>
</html>
</html>

View File

@ -169,7 +169,7 @@
<img class="logo" src="assets/logo.png">
<div class="title">systeminformation</div>
<div class="subtitle"><span id="typed"></span></div>
<div class="version">Current Version: <span id="version">4.34.4</span></div>
<div class="version">Current Version: <span id="version">4.34.5</span></div>
<button class="btn btn-light" onclick="location.href='https://github.com/sebhildebrandt/systeminformation'">View on Github <i class=" fab fa-github"></i></button>
</div>
<div class="down">

View File

@ -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();