diff --git a/CHANGELOG.md b/CHANGELOG.md index 28da3eb..24853aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -90,6 +90,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page. | Version | Date | Comment | | ------- | ---------- | --------------------------------------------------------------------------------------------------- | +| 5.30.1 | 2026-01-07 | `networkInterfaces()`, `users()` improved date parsing (linux). | | 5.30.0 | 2026-01-06 | `processes()` added user (windows) | | 5.29.1 | 2026-01-05 | `fsSize()` support network attached storage (linux) | | 5.29.0 | 2026-01-04 | `osInfo()` added OS code name (windows) | diff --git a/docs/history.html b/docs/history.html index 782a7df..8ac088f 100644 --- a/docs/history.html +++ b/docs/history.html @@ -57,6 +57,11 @@ + + 5.30.2 + 2026-01-07 + users() improved date parsing (linux) + 5.30.0 2026-01-06 diff --git a/docs/index.html b/docs/index.html index 71351a6..bdaa1a1 100644 --- a/docs/index.html +++ b/docs/index.html @@ -170,7 +170,7 @@
systeminformation
 
-
New Version: 5.30.0
+
New Version: 5.30.1
@@ -204,7 +204,7 @@
-
19,659
+
20,651
Lines of code
diff --git a/lib/network.js b/lib/network.js index 0886e7c..83650a6 100644 --- a/lib/network.js +++ b/lib/network.js @@ -425,8 +425,9 @@ function getWindowsIEEE8021x(connectionType, iface, ifaces) { ifaceSanitized = ifaceSanitized + s[i]; } } - i8021xState = execSync(`netsh wlan show profiles "${ifaceSanitized}" | findstr "802.1X"`, util.execOptsWin); - i8021xProtocol = execSync(`netsh wlan show profiles "${ifaceSanitized}" | findstr "EAP"`, util.execOptsWin); + const profiles = execSync(`netsh wlan show profiles "${ifaceSanitized}"`, util.execOptsWin).split('\r\n'); + i8021xState = (profiles.find((l) => l.indexOf('802.1X') >= 0) || '').trim(); + i8021xProtocol = (profiles.find((l) => l.indexOf('EAP') >= 0) || '').trim(); } if (i8021xState.includes(':') && i8021xProtocol.includes(':')) {