diff --git a/scripts/pi-hole/js/index.js b/scripts/pi-hole/js/index.js index 6dd50fb9..b764237b 100644 --- a/scripts/pi-hole/js/index.js +++ b/scripts/pi-hole/js/index.js @@ -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; }