diff --git a/lib/network.js b/lib/network.js index 0abd27e..94f843f 100644 --- a/lib/network.js +++ b/lib/network.js @@ -346,7 +346,7 @@ function getWindowsIEEE8021x(connectionType, iface, ifaces) { if(state8021x.includes('Disabled')){ i8021x.state = "Disabled"; i8021x.protocol = "Not defined"; - + } else if (state8021x.includes('Enabled')) { const protocol8021x = arrayIface8021xInfo.find((element) => { return element.includes('EAP'); @@ -365,6 +365,8 @@ function getWindowsIEEE8021x(connectionType, iface, ifaces) { let i8021xState = ''; let i8021xProtocol = ''; + + try { const SSID = getWindowsWirelessIfaceSSID(iface); if(SSID !== 'Unknown') {