networkInterfaceDefault() fixed CMD popup (windows)
This commit is contained in:
parent
dc0a7a5498
commit
c49ac47b5d
@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page.
|
|||||||
|
|
||||||
| Version | Date | Comment |
|
| 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.4 | 2020-01-06 | `system()` fixed vitrual catch error |
|
||||||
| 4.34.3 | 2020-01-06 | `graphics()` fixed non nvidia-smi controllers (win) |
|
| 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() |
|
| 4.34.2 | 2020-01-05 | `system()` uuid lowercase as in uuid() |
|
||||||
|
|||||||
@ -83,6 +83,11 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<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>
|
<tr>
|
||||||
<th scope="row">4.34.4</th>
|
<th scope="row">4.34.4</th>
|
||||||
<td>2020-01-06</td>
|
<td>2020-01-06</td>
|
||||||
@ -2054,4 +2059,4 @@
|
|||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
@ -169,7 +169,7 @@
|
|||||||
<img class="logo" src="assets/logo.png">
|
<img class="logo" src="assets/logo.png">
|
||||||
<div class="title">systeminformation</div>
|
<div class="title">systeminformation</div>
|
||||||
<div class="subtitle"><span id="typed"></span></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>
|
<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>
|
||||||
<div class="down">
|
<div class="down">
|
||||||
|
|||||||
@ -66,7 +66,7 @@ function getDefaultNetworkInterface() {
|
|||||||
// https://www.inetdaemon.com/tutorials/internet/ip/routing/default_route.shtml
|
// https://www.inetdaemon.com/tutorials/internet/ip/routing/default_route.shtml
|
||||||
let defaultIp = '';
|
let defaultIp = '';
|
||||||
const cmd = 'netstat -r';
|
const cmd = 'netstat -r';
|
||||||
const result = execSync(cmd);
|
const result = execSync(cmd, util.execOptsWin);
|
||||||
const lines = result.toString().split(os.EOL);
|
const lines = result.toString().split(os.EOL);
|
||||||
lines.forEach(line => {
|
lines.forEach(line => {
|
||||||
line = line.replace(/\s+/g, ' ').trim();
|
line = line.replace(/\s+/g, ' ').trim();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user