From f079692b16f98c72c624b4d58865556c4145ad5b Mon Sep 17 00:00:00 2001 From: si458 Date: Sun, 26 Jan 2025 14:57:41 +0000 Subject: [PATCH] change dnslytics.com to maclookup.app for mac address lookup #6704 Signed-off-by: si458 --- views/default.handlebars | 6 +++--- views/default3.handlebars | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/views/default.handlebars b/views/default.handlebars index 9085b345..3738ef00 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -2838,11 +2838,11 @@ if (net.name) { x += addHtmlValue2("Name", '' + EscapeHtml(net.name) + ''); } if (net.desc) { x += addHtmlValue2("Description", EscapeHtml(net.desc).replace('(R)', '®').replace('(r)', '®')); } if (net.dnssuffix) { x += addHtmlValue2("DNS suffix", EscapeHtml(net.dnssuffix) + ' '); } - if (net.mac) { x += addHtmlValue2("MAC address", '' + EscapeHtml(net.mac.toLowerCase()) + ' '); } + if (net.mac) { x += addHtmlValue2("MAC address", '' + EscapeHtml(net.mac.toLowerCase()) + ' '); } if (net.v4addr) { x += addHtmlValue2("IPv4 address", EscapeHtml(net.v4addr) + ' '); } if (net.v4mask) { x += addHtmlValue2("IPv4 mask", EscapeHtml(net.v4mask) + ' '); } if (net.v4gateway) { x += addHtmlValue2("IPv4 gateway", EscapeHtml(net.v4gateway) + ' '); } - if (net.gatewaymac) { x += addHtmlValue2("Gateway MAC", '' + EscapeHtml(net.gatewaymac.toLowerCase()) + ' '); } + if (net.gatewaymac) { x += addHtmlValue2("Gateway MAC", '' + EscapeHtml(net.gatewaymac.toLowerCase()) + ' '); } } } else if (message.netif2 != null) { // New style @@ -2851,7 +2851,7 @@ if ((Array.isArray(net) == false) || (net.length < 1) || (net[0] == null) || ((typeof net[0].mac == 'string') && (net[0].mac.startsWith('00:00:00:00')))) continue; x += '
' x += addHtmlValue2("Name", '' + EscapeHtml(i) + ''); - if (typeof net[0].mac == 'string') { x += addHtmlValue2("MAC address", '' + EscapeHtml(net[0].mac.toLowerCase()) + ' '); } + if (typeof net[0].mac == 'string') { x += addHtmlValue2("MAC address", '' + EscapeHtml(net[0].mac.toLowerCase()) + ' '); } if (net[0].fqdn) { x += addHtmlValue2("FQDN", net[0].fqdn); } for (var j = 0; j < net.length; j++) { var netif = net[j]; diff --git a/views/default3.handlebars b/views/default3.handlebars index ec3e90c3..95a41792 100644 --- a/views/default3.handlebars +++ b/views/default3.handlebars @@ -3277,11 +3277,11 @@ if (net.name) { x += addHtmlValue2("Name", '' + EscapeHtml(net.name) + ''); } if (net.desc) { x += addHtmlValue2("Description", EscapeHtml(net.desc).replace('(R)', '®').replace('(r)', '®')); } if (net.dnssuffix) { x += addHtmlValue2("DNS suffix", EscapeHtml(net.dnssuffix) + ' '); } - if (net.mac) { x += addHtmlValue2("MAC address", '' + EscapeHtml(net.mac.toLowerCase()) + ' '); } + if (net.mac) { x += addHtmlValue2("MAC address", '' + EscapeHtml(net.mac.toLowerCase()) + ' '); } if (net.v4addr) { x += addHtmlValue2("IPv4 address", EscapeHtml(net.v4addr) + ' '); } if (net.v4mask) { x += addHtmlValue2("IPv4 mask", EscapeHtml(net.v4mask) + ' '); } if (net.v4gateway) { x += addHtmlValue2("IPv4 gateway", EscapeHtml(net.v4gateway) + ' '); } - if (net.gatewaymac) { x += addHtmlValue2("Gateway MAC", '' + EscapeHtml(net.gatewaymac.toLowerCase()) + ' '); } + if (net.gatewaymac) { x += addHtmlValue2("Gateway MAC", '' + EscapeHtml(net.gatewaymac.toLowerCase()) + ' '); } } } else if (message.netif2 != null) { // New style @@ -3290,7 +3290,7 @@ if ((Array.isArray(net) == false) || (net.length < 1) || (net[0] == null) || ((typeof net[0].mac == 'string') && (net[0].mac.startsWith('00:00:00:00')))) continue; x += '
' x += addHtmlValue2("Name", '' + EscapeHtml(i) + ''); - if (typeof net[0].mac == 'string') { x += addHtmlValue2("MAC address", '' + EscapeHtml(net[0].mac.toLowerCase()) + ' '); } + if (typeof net[0].mac == 'string') { x += addHtmlValue2("MAC address", '' + EscapeHtml(net[0].mac.toLowerCase()) + ' '); } if (net[0].fqdn) { x += addHtmlValue2("FQDN", net[0].fqdn); } for (var j = 0; j < net.length; j++) { var netif = net[j];