mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-26 23:25:53 -05:00
Fixed device details when interface has no IP.
This commit is contained in:
parent
81d903672a
commit
fee32a54f7
@ -5402,14 +5402,14 @@
|
|||||||
if (iplayer.gateway && iplayer.netmask) {
|
if (iplayer.gateway && iplayer.netmask) {
|
||||||
x += addDetailItem("IPv4 Layer", format("{0}, Mask: {1}, Gateway: {2}", EscapeHtml(iplayer.address), EscapeHtml(iplayer.netmask), EscapeHtml(iplayer.gateway)));
|
x += addDetailItem("IPv4 Layer", format("{0}, Mask: {1}, Gateway: {2}", EscapeHtml(iplayer.address), EscapeHtml(iplayer.netmask), EscapeHtml(iplayer.gateway)));
|
||||||
} else {
|
} else {
|
||||||
x += addDetailItem("IPv4 Layer", format("{0}", EscapeHtml(iplayer.address)));
|
if (iplayer.address) { x += addDetailItem("IPv4 Layer", format("{0}", EscapeHtml(iplayer.address))); }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (iplayer.family == 'IPv6') {
|
if (iplayer.family == 'IPv6') {
|
||||||
if (iplayer.gateway && iplayer.netmask) {
|
if (iplayer.gateway && iplayer.netmask) {
|
||||||
x += addDetailItem("IPv6 Layer", format("{0}, Mask: {1}, Gateway: {2}", EscapeHtml(iplayer.address), EscapeHtml(iplayer.netmask), EscapeHtml(iplayer.gateway)));
|
x += addDetailItem("IPv6 Layer", format("{0}, Mask: {1}, Gateway: {2}", EscapeHtml(iplayer.address), EscapeHtml(iplayer.netmask), EscapeHtml(iplayer.gateway)));
|
||||||
} else {
|
} else {
|
||||||
x += addDetailItem("IPv6 Layer", format("{0}", EscapeHtml(iplayer.address)));
|
if (iplayer.address) { x += addDetailItem("IPv6 Layer", format("{0}", EscapeHtml(iplayer.address))); }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9951,7 +9951,7 @@
|
|||||||
if (m.gatewaymac) {
|
if (m.gatewaymac) {
|
||||||
x += addDetailItem("MAC Layer", format("MAC: {0}, Gateway: {1}", EscapeHtml(m.mac), EscapeHtml(m.gatewaymac)));
|
x += addDetailItem("MAC Layer", format("MAC: {0}, Gateway: {1}", EscapeHtml(m.mac), EscapeHtml(m.gatewaymac)));
|
||||||
} else {
|
} else {
|
||||||
x += addDetailItem("MAC Layer", format("MAC: {0}", EscapeHtml(m.mac)));
|
if (m.mac) { x += addDetailItem("MAC Layer", format("MAC: {0}", EscapeHtml(m.mac))); }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (var j in m.ipv4layer) {
|
for (var j in m.ipv4layer) {
|
||||||
@ -9959,7 +9959,7 @@
|
|||||||
if (ipv4layer.v4gateway && ipv4layer.v4mask) {
|
if (ipv4layer.v4gateway && ipv4layer.v4mask) {
|
||||||
x += addDetailItem("IPv4 Layer", format("IP: {0}, Mask: {1}, Gateway: {2}", EscapeHtml(ipv4layer.v4addr), EscapeHtml(ipv4layer.v4mask), EscapeHtml(ipv4layer.v4gateway)));
|
x += addDetailItem("IPv4 Layer", format("IP: {0}, Mask: {1}, Gateway: {2}", EscapeHtml(ipv4layer.v4addr), EscapeHtml(ipv4layer.v4mask), EscapeHtml(ipv4layer.v4gateway)));
|
||||||
} else {
|
} else {
|
||||||
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>';
|
||||||
@ -9996,14 +9996,14 @@
|
|||||||
if (iplayer.gateway && iplayer.netmask) {
|
if (iplayer.gateway && iplayer.netmask) {
|
||||||
x += addDetailItem("IPv4 Layer", format("IP: {0}, Mask: {1}, Gateway: {2}", EscapeHtml(iplayer.address), EscapeHtml(iplayer.netmask), EscapeHtml(iplayer.gateway)));
|
x += addDetailItem("IPv4 Layer", format("IP: {0}, Mask: {1}, Gateway: {2}", EscapeHtml(iplayer.address), EscapeHtml(iplayer.netmask), EscapeHtml(iplayer.gateway)));
|
||||||
} else {
|
} else {
|
||||||
x += addDetailItem("IPv4 Layer", format("IP: {0}", EscapeHtml(iplayer.address)));
|
if (iplayer.address) { x += addDetailItem("IPv4 Layer", format("IP: {0}", EscapeHtml(iplayer.address))); }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (iplayer.family == 'IPv6') {
|
if (iplayer.family == 'IPv6') {
|
||||||
if (iplayer.gateway && iplayer.netmask) {
|
if (iplayer.gateway && iplayer.netmask) {
|
||||||
x += addDetailItem("IPv6 Layer", format("IP: {0}, Mask: {1}, Gateway: {2}", EscapeHtml(iplayer.address), EscapeHtml(iplayer.netmask), EscapeHtml(iplayer.gateway)));
|
x += addDetailItem("IPv6 Layer", format("IP: {0}, Mask: {1}, Gateway: {2}", EscapeHtml(iplayer.address), EscapeHtml(iplayer.netmask), EscapeHtml(iplayer.gateway)));
|
||||||
} else {
|
} else {
|
||||||
x += addDetailItem("IPv6 Layer", format("IP: {0}", EscapeHtml(iplayer.address)));
|
if (iplayer.address) { x += addDetailItem("IPv6 Layer", format("IP: {0}", EscapeHtml(iplayer.address))); }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user