get Authentication protocol - Linux
This commit is contained in:
parent
bd7e69be9b
commit
99fcedf0ee
@ -523,7 +523,7 @@ function networkInterfaces(callback) {
|
||||
let operstate = 'down';
|
||||
let dhcp = false;
|
||||
let dnsSuffix = '';
|
||||
let authMethod = '';
|
||||
let authProtocol = '';
|
||||
let type = '';
|
||||
|
||||
if (ifaces.hasOwnProperty(dev)) {
|
||||
@ -580,7 +580,7 @@ function networkInterfaces(callback) {
|
||||
const connectionName = getLinuxIfaceConnectionName(iface);
|
||||
dhcp = getLinuxIfaceDHCPstatus(connectionName);
|
||||
dnsSuffix = getLinuxIfaceDNSsuffix(connectionName);
|
||||
authMethod = getLinuxIfaceAuthProtocol(connectionName);
|
||||
authProtocol = getLinuxIfaceAuthProtocol(connectionName);
|
||||
lines = execSync(cmd).toString().split('\n');
|
||||
|
||||
|
||||
@ -603,7 +603,7 @@ function networkInterfaces(callback) {
|
||||
if (iface === 'lo' || iface.startsWith('bond')) { type = 'virtual'; }
|
||||
}
|
||||
if (_windows) {
|
||||
authMethod = 'Unknow';
|
||||
authProtocol = 'Unknow';
|
||||
dnsSuffix = getWindowsIfaceDNSsuffix(dnsSuffixes.ifaces, dev);
|
||||
nics.forEach(detail => {
|
||||
if (detail.mac === mac) {
|
||||
@ -635,7 +635,7 @@ function networkInterfaces(callback) {
|
||||
speed,
|
||||
dhcp,
|
||||
dnsSuffix,
|
||||
authMethod,
|
||||
authProtocol,
|
||||
carrierChanges,
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user