diff --git a/lib/network.js b/lib/network.js index 1157ba3..e56fb97 100644 --- a/lib/network.js +++ b/lib/network.js @@ -193,12 +193,6 @@ function parseLinesWindowsNics(sections, nconfigsections) { let lines = sections[i].trim().split('\r\n'); let linesNicConfig = nconfigsections[i].trim().split('\r\n'); let netEnabled = util.getValue(lines, 'NetEnabled', '='); - let dnsSuffixes = util.getValue(linesNicConfig, 'DNSDomainSuffixSearchOrder', '=').replace(/{|}/g, ''); - if(dnsSuffixes !== '') { - dnsSuffixes = dnsSuffixes.replace(/;/g, ','); - dnsSuffixes = dnsSuffixes.replace(/"/g, ''); - dnsSuffixes = dnsSuffixes.split(","); - } if (netEnabled) { const speed = parseInt(util.getValue(lines, 'speed', '=').trim(), 10) / 1000000; @@ -206,7 +200,6 @@ function parseLinesWindowsNics(sections, nconfigsections) { mac: util.getValue(lines, 'MACAddress', '=').toLowerCase(), dhcp: util.getValue(linesNicConfig, 'dhcpEnabled', '=').toLowerCase(), name: util.getValue(lines, 'Name', '=').replace(/\]/g, ')').replace(/\[/g, '('), - dnsSuffixes: dnsSuffixes === '' ? [] : dnsSuffixes, netEnabled: netEnabled === 'TRUE', speed: isNaN(speed) ? -1 : speed, operstate: util.getValue(lines, 'NetConnectionStatus', '=') === '2' ? 'up' : 'down', @@ -426,7 +419,6 @@ function networkInterfaces(callback) { let carrierChanges = 0; let operstate = 'down'; let dhcp = false; - let dnsSuffixes = []; let type = ''; if (ifaces.hasOwnProperty(dev)) { @@ -508,7 +500,6 @@ function networkInterfaces(callback) { if (detail.mac === mac) { ifaceName = detail.name; dhcp = detail.dhcp; - dnsSuffixes = detail.dnsSuffixes; operstate = detail.operstate; speed = detail.speed; type = detail.type; @@ -534,7 +525,6 @@ function networkInterfaces(callback) { mtu, speed, dhcp, - dnsSuffixes, carrierChanges, }); }