networkInterfaces() cleaned up testVirtualNic
This commit is contained in:
parent
d335b204a5
commit
7ddfaad60a
@ -82,6 +82,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
|
||||
|
||||
| Version | Date | Comment |
|
||||
| ------- | ---------- | --------------------------------------------------------------------------------------------------- |
|
||||
| 5.18.1 | 2023-06-07 | `networkInterfaces()` cleaned up testVirtualNic |
|
||||
| 5.18.0 | 2023-06-06 | `fsSize()` added optional drive parameter |
|
||||
| 5.17.17 | 2023-06-03 | `osInfo()` improved fqdn (linux) |
|
||||
| 5.17.16 | 2023-05-30 | `usb()` fix parsing JSON (mac OS) |
|
||||
|
||||
@ -57,6 +57,11 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">5.18.1</th>
|
||||
<td>2023-06-07</td>
|
||||
<td><span class="code">networkInterfaces()</span> cleaned up testVirtualNic</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">5.18.0</th>
|
||||
<td>2023-06-06</td>
|
||||
|
||||
@ -170,7 +170,7 @@
|
||||
<img class="logo" src="assets/logo.png" alt="logo">
|
||||
<div class="title">systeminformation</div>
|
||||
<div class="subtitle"><span id="typed"></span> </div>
|
||||
<div class="version">New Version: <span id="version">5.18.0</span></div>
|
||||
<div class="version">New Version: <span id="version">5.18.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">
|
||||
@ -204,7 +204,7 @@
|
||||
</div>
|
||||
<div class="row number-section">
|
||||
<div class="col-xl-4 col-lg-4 col-md-4 col-12">
|
||||
<div class="numbers">15,389</div>
|
||||
<div class="numbers">15,423</div>
|
||||
<div class="title">Lines of code</div>
|
||||
</div>
|
||||
<div class="col-xl-4 col-lg-4 col-md-4 col-12">
|
||||
|
||||
@ -137,7 +137,7 @@ function fsSize(drive, callback) {
|
||||
}
|
||||
}
|
||||
if (_linux) {
|
||||
cmd = 'export LC_ALL=C; df -lkPTx squashfs; unset LC_ALL';
|
||||
cmd = 'df -lkPTx squashfs';
|
||||
execSync('cat /proc/mounts 2>/dev/null').toString().split('\n').filter(line => {
|
||||
return line.startsWith('/');
|
||||
}).forEach((line) => {
|
||||
|
||||
@ -673,9 +673,9 @@ function getLinuxIfaceIEEE8021xState(authenticationProtocol) {
|
||||
}
|
||||
|
||||
function testVirtualNic(iface, ifaceName, mac) {
|
||||
const virtualMacs = ['00:00:00:00:00:00', '00:03:FF', '00:05:69', '00:0C:29', '00:0F:4B', '00:0F:4B', '00:13:07', '00:13:BE', '00:15:5d', '00:16:3E', '00:1C:42', '00:21:F6', '00:21:F6', '00:24:0B', '00:24:0B', '00:50:56', '00:A0:B1', '00:E0:C8', '08:00:27', '0A:00:27', '18:92:2C', '16:DF:49', '3C:F3:92', '54:52:00', 'FC:15:97'];
|
||||
const virtualMacs = ['00:00:00:00:00:00', '00:03:FF', '00:05:69', '00:0C:29', '00:0F:4B', '00:13:07', '00:13:BE', '00:15:5d', '00:16:3E', '00:1C:42', '00:21:F6', '00:24:0B', '00:50:56', '00:A0:B1', '00:E0:C8', '08:00:27', '0A:00:27', '18:92:2C', '16:DF:49', '3C:F3:92', '54:52:00', 'FC:15:97'];
|
||||
if (mac) {
|
||||
return virtualMacs.filter(item => { return mac.toUpperCase().toUpperCase().startsWith(item.substr(0, mac.length)); }).length > 0 ||
|
||||
return virtualMacs.filter(item => { return mac.toUpperCase().toUpperCase().startsWith(item.substring(0, mac.length)); }).length > 0 ||
|
||||
iface.toLowerCase().indexOf(' virtual ') > -1 ||
|
||||
ifaceName.toLowerCase().indexOf(' virtual ') > -1 ||
|
||||
iface.toLowerCase().indexOf('vethernet ') > -1 ||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user