networkInterfaces() improved parsing (windows)
This commit is contained in:
parent
08005137de
commit
9c11242495
@ -80,6 +80,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
|
||||
|
||||
| Version | Date | Comment |
|
||||
| -------------- | -------------- | -------- |
|
||||
| 5.11.11 | 2022-04-19 | `networkInterfaces()` improved parsing (windows) |
|
||||
| 5.11.10 | 2022-04-18 | updated docs |
|
||||
| 5.11.9 | 2022-03-20 | `diskLayout()` fixed issue smartStatus (linux) |
|
||||
| 5.11.8 | 2022-03-11 | `cpu()` improved socket detection by name (windows) |
|
||||
|
||||
@ -57,6 +57,11 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">5.11.11</th>
|
||||
<td>2022-04-19</td>
|
||||
<td><span class="code">networkInterfaces()</span> improved parsing (windows)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">5.11.10</th>
|
||||
<td>2022-04-18</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">New Version: <span id="version">5.11.10</span></div>
|
||||
<div class="version">New Version: <span id="version">5.11.11</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">
|
||||
|
||||
@ -217,7 +217,7 @@ function parseLinesWindowsNics(sections, nconfigsections) {
|
||||
if (sections[i].trim() !== '') {
|
||||
|
||||
let lines = sections[i].trim().split('\r\n');
|
||||
let linesNicConfig = nconfigsections[i].trim().split('\r\n');
|
||||
let linesNicConfig = nconfigsections && nconfigsections[i] ? nconfigsections[i].trim().split('\r\n') : [];
|
||||
let netEnabled = util.getValue(lines, 'NetEnabled', ':');
|
||||
let adapterType = util.getValue(lines, 'AdapterTypeID', ':') === '9' ? 'wireless' : 'wired';
|
||||
let ifacename = util.getValue(lines, 'Name', ':').replace(/\]/g, ')').replace(/\[/g, '(');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user