get Authentication protocol - Linux

This commit is contained in:
VP-002 U 2019-11-05 14:17:45 -05:00
parent bd7e69be9b
commit 99fcedf0ee

View File

@ -523,7 +523,7 @@ function networkInterfaces(callback) {
let operstate = 'down'; let operstate = 'down';
let dhcp = false; let dhcp = false;
let dnsSuffix = ''; let dnsSuffix = '';
let authMethod = ''; let authProtocol = '';
let type = ''; let type = '';
if (ifaces.hasOwnProperty(dev)) { if (ifaces.hasOwnProperty(dev)) {
@ -580,7 +580,7 @@ function networkInterfaces(callback) {
const connectionName = getLinuxIfaceConnectionName(iface); const connectionName = getLinuxIfaceConnectionName(iface);
dhcp = getLinuxIfaceDHCPstatus(connectionName); dhcp = getLinuxIfaceDHCPstatus(connectionName);
dnsSuffix = getLinuxIfaceDNSsuffix(connectionName); dnsSuffix = getLinuxIfaceDNSsuffix(connectionName);
authMethod = getLinuxIfaceAuthProtocol(connectionName); authProtocol = getLinuxIfaceAuthProtocol(connectionName);
lines = execSync(cmd).toString().split('\n'); lines = execSync(cmd).toString().split('\n');
@ -603,7 +603,7 @@ function networkInterfaces(callback) {
if (iface === 'lo' || iface.startsWith('bond')) { type = 'virtual'; } if (iface === 'lo' || iface.startsWith('bond')) { type = 'virtual'; }
} }
if (_windows) { if (_windows) {
authMethod = 'Unknow'; authProtocol = 'Unknow';
dnsSuffix = getWindowsIfaceDNSsuffix(dnsSuffixes.ifaces, dev); dnsSuffix = getWindowsIfaceDNSsuffix(dnsSuffixes.ifaces, dev);
nics.forEach(detail => { nics.forEach(detail => {
if (detail.mac === mac) { if (detail.mac === mac) {
@ -635,7 +635,7 @@ function networkInterfaces(callback) {
speed, speed,
dhcp, dhcp,
dnsSuffix, dnsSuffix,
authMethod, authProtocol,
carrierChanges, carrierChanges,
}); });
} }