Use upstream names instead of IP when available

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2023-11-13 10:17:33 +01:00
parent 4c50b49ed3
commit 7e1114f0c6
+1 -1
View File
@@ -216,7 +216,7 @@ function updateForwardDestinationsPie() {
// Collect values and colors
data.upstreams.forEach(function (item) {
var label = item.ip;
var label = item.name !== null && item.name.length > 0 ? item.name : item.ip;
if (item.port > 0) {
label += "#" + item.port;
}