networkInterfaceDefault() time delay fix (linux)
This commit is contained in:
parent
a627714162
commit
3bc7664748
@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page.
|
||||
|
||||
| Version | Date | Comment |
|
||||
| -------------- | -------------- | -------- |
|
||||
| 4.2.1 | 2019-05-09 | `networkInterfaceDefault()` time delay fix (linux) |
|
||||
| 4.2.0 | 2019-05-09 | `osInfo()` extended service pack version (windows) |
|
||||
| 4.1.8 | 2019-05-09 | `graphics()` resolve on error (windows) |
|
||||
| 4.1.7 | 2019-05-09 | `users()` parsing fix (windows) |
|
||||
|
||||
@ -80,6 +80,11 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">4.2.1</th>
|
||||
<td>2019-05-09</td>
|
||||
<td><span class="code">networkInterfaceDefault()</span> time delay fix (linux)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">4.2.0</th>
|
||||
<td>2019-05-09</td>
|
||||
|
||||
@ -170,7 +170,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.2.0</span></div>
|
||||
<div class="version">Current Version: <span id="version">4.2.1</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">
|
||||
|
||||
@ -60,7 +60,7 @@ function getDefaultNetworkInterface() {
|
||||
ifacename = ifacename || ifacenameFirst || '';
|
||||
if (_linux || _darwin || _freebsd || _openbsd || _sunos) {
|
||||
let cmd = '';
|
||||
if (_linux) cmd = 'route 2>/dev/null | grep default | awk \'{print $8}\'';
|
||||
if (_linux) cmd = 'ip route 2> /dev/null | grep default | awk \'{print $5}\'';
|
||||
if (_darwin) cmd = 'route get 0.0.0.0 2>/dev/null | grep interface: | awk \'{print $2}\'';
|
||||
if (_freebsd || _openbsd || _sunos) cmd = 'route get 0.0.0.0 | grep interface:';
|
||||
let result = execSync(cmd);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user