networkInterfaces(), users() improved date parsing (linux)
This commit is contained in:
+3
-2
@@ -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(':')) {
|
||||
|
||||
Reference in New Issue
Block a user