mirror of
https://github.com/gosticks/web.git
synced 2026-12-03 17:51:39 +00:00
Use the destination IP address if the name is not available
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
This commit is contained in:
@@ -49,7 +49,7 @@ class ForwardDestinationsChart extends Component {
|
||||
let i = 0;
|
||||
for(let destination of forwardDestinations) {
|
||||
data.push(destination.percent);
|
||||
labels.push(destination.name);
|
||||
labels.push(destination.name.length !== 0 ? destination.name : destination.ip);
|
||||
usedColors.push(
|
||||
// If we ran out of colors, make a random one
|
||||
i < colors.length
|
||||
|
||||
Reference in New Issue
Block a user