From bf3d96ac9c95db344a16c5c3cd08fe4050774605 Mon Sep 17 00:00:00 2001 From: NetworkCats Date: Sun, 22 Mar 2026 16:23:14 +0800 Subject: [PATCH] fix: use semantic data-label keys for alt-IP table row labels The JS used fragile numeric indices to look up localized labels from the server-rendered table. When optional rows (ASN, Org, Country, City) were missing for the primary IP, the indices shifted, causing 'Proxy' to appear as the City label. Add data-label attributes to each in the template and key the label map by name instead of position. --- static/script.js | 27 +++++++++++++-------------- templates/index.html | 16 ++++++++-------- 2 files changed, 21 insertions(+), 22 deletions(-) diff --git a/static/script.js b/static/script.js index db0d82f..0b95237 100644 --- a/static/script.js +++ b/static/script.js @@ -218,10 +218,10 @@ function initCopyIp(wrap){ var labels={}; var rows=root.querySelectorAll(".info-table tbody tr"); for(var i=0;i