From de4902938b8dfd4a86035c3cee3891a6ee203caa Mon Sep 17 00:00:00 2001 From: dsutanto Date: Mon, 20 Jul 2026 14:20:06 +0700 Subject: [PATCH] Fix Proxy to support animation on globe (On Prem) --- proxy/netifyTelemetry.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/proxy/netifyTelemetry.js b/proxy/netifyTelemetry.js index 6b5aaea..bbf3653 100644 --- a/proxy/netifyTelemetry.js +++ b/proxy/netifyTelemetry.js @@ -111,13 +111,14 @@ async function fetchTopCountries(interval = 1440, limit = 100, agentUuid = null, const ulMap = {}; if (ulData) { for (const r of ulData) { - const cc = r.country?.code; + const cc = r.country?.code || r.country?.label; if (cc) ulMap[cc] = r.upload ?? 0; } } return dlData.map(r => { + const cc = r.country?.code || r.country?.label; return { - country_code: r.country?.code ?? 'Unknown', + country_code: cc || 'Unknown', country_name: r.country?.label ?? '', download: r.download ?? 0, upload: ulMap[r.country?.code] ?? 0, -- 2.54.0