mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-27 23:55:54 -05:00
add dns servers to details tab (#5709)
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
parent
21bd171167
commit
6cb05ce009
@ -1921,6 +1921,7 @@ function getSystemInformation(func) {
|
|||||||
} catch (ex) { }
|
} catch (ex) { }
|
||||||
}
|
}
|
||||||
results.hardware.agentvers = process.versions;
|
results.hardware.agentvers = process.versions;
|
||||||
|
results.hardware.network = { dns: require('os').dns() };
|
||||||
replaceSpacesWithUnderscoresRec(results);
|
replaceSpacesWithUnderscoresRec(results);
|
||||||
var hasher = require('SHA384Stream').create();
|
var hasher = require('SHA384Stream').create();
|
||||||
// results.hash = hasher.syncHash(JSON.stringify(results)).toString('hex');
|
// results.hash = hasher.syncHash(JSON.stringify(results)).toString('hex');
|
||||||
|
@ -6015,7 +6015,12 @@
|
|||||||
if (iplayer.family == 'IPv6') { x += addDetailItem("IPv6 Layer", items.join(", ")); }
|
if (iplayer.family == 'IPv6') { x += addDetailItem("IPv6 Layer", items.join(", ")); }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
x += '</div>';
|
x += '</div></td></tr>';
|
||||||
|
}
|
||||||
|
if (hardware.network && hardware.network.dns) {
|
||||||
|
x += '<tr><td><div class=style10 style=border-radius:5px;padding:8px>';
|
||||||
|
x += addDetailItem("<b>DNS Servers</b>", hardware.network.dns.join(", "));
|
||||||
|
x += '</div></td></tr>';
|
||||||
}
|
}
|
||||||
x += '</table>';
|
x += '</table>';
|
||||||
if (x != '') { sections.push({ name: "Networking", html: x, img: 'networking' }); }
|
if (x != '') { sections.push({ name: "Networking", html: x, img: 'networking' }); }
|
||||||
|
@ -11877,7 +11877,7 @@
|
|||||||
if (ipv4layer.v4addr) { x += addDetailItem("IPv4 Layer", format("IP: {0}", EscapeHtml(ipv4layer.v4addr))); }
|
if (ipv4layer.v4addr) { x += addDetailItem("IPv4 Layer", format("IP: {0}", EscapeHtml(ipv4layer.v4addr))); }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
x += '</div>';
|
x += '</div></td></tr>';
|
||||||
}
|
}
|
||||||
x += '</table>';
|
x += '</table>';
|
||||||
if (x != '') { sections.push({ name: "Networking", html: x, img: 'networking64.png'}); }
|
if (x != '') { sections.push({ name: "Networking", html: x, img: 'networking64.png'}); }
|
||||||
@ -11915,7 +11915,12 @@
|
|||||||
if (iplayer.family == 'IPv6') { x += addDetailItem("IPv6 Layer", items.join(", ")); }
|
if (iplayer.family == 'IPv6') { x += addDetailItem("IPv6 Layer", items.join(", ")); }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
x += '</div>';
|
x += '</div></td></tr>';
|
||||||
|
}
|
||||||
|
if (hardware.network && hardware.network.dns) {
|
||||||
|
x += '<tr><td><div class=style10 style=border-radius:5px;padding:8px>';
|
||||||
|
x += addDetailItem("<b>DNS Servers</b>", hardware.network.dns.join(", "));
|
||||||
|
x += '</div></td></tr>';
|
||||||
}
|
}
|
||||||
x += '</table>';
|
x += '</table>';
|
||||||
if (x != '') { sections.push({ name: "Networking", html: x, img: 'networking64.png'}); }
|
if (x != '') { sections.push({ name: "Networking", html: x, img: 'networking64.png'}); }
|
||||||
|
Loading…
Reference in New Issue
Block a user