mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 12:48:29 +00:00
Use upstream names instead of IP when available (#2827)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user