mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 12:48:29 +00:00
Add port to upstream legend key if available
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -207,8 +207,8 @@ function updateForwardDestinationsPie() {
|
||||
// Collect values and colors
|
||||
data.upstreams.forEach(function (item) {
|
||||
var label = item.ip;
|
||||
if (item.name.length > 0) {
|
||||
label = item.ip;
|
||||
if (item.port > 0) {
|
||||
label += "#" + item.port;
|
||||
}
|
||||
|
||||
var percent = (100 * item.count) / sum;
|
||||
|
||||
Reference in New Issue
Block a user