Add Tools -> Interfaces page

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2024-07-14 22:57:32 +02:00
parent b732092348
commit 5bf7b28b53
9 changed files with 442 additions and 2 deletions

View File

@@ -373,9 +373,9 @@ $(function () {
// Get first object in gateway that has family == "inet6"
const inet6 = gateway.find(obj => obj.family === "inet6");
$("#sysinfo-gw-v4-addr").text(inet ? inet.local.join('\n') : "N/A");
$("#sysinfo-gw-v4-addr").text(inet ? inet.local.join("\n") : "N/A");
$("#sysinfo-gw-v4-iface").text(inet ? inet.interface : "N/A");
$("#sysinfo-gw-v6-addr").text(inet6 ? inet6.local.join('\n') : "N/A");
$("#sysinfo-gw-v6-addr").text(inet6 ? inet6.local.join("\n") : "N/A");
$("#sysinfo-gw-v6-iface").text(inet6 ? inet6.interface : "N/A");
})
.fail(function (data) {