Use upstream names instead of IP when available (#2827)

This commit is contained in:
DL6ER
2023-11-13 23:20:58 +01:00
committed by GitHub

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;
}