networkInterfaces(), users() improved date parsing (linux)

This commit is contained in:
Sebastian Hildebrandt
2026-01-07 15:54:28 +01:00
parent 493ee1f8c2
commit b87c40376e
4 changed files with 11 additions and 4 deletions
+3 -2
View File
@@ -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(':')) {