fix(routing): resolve real IP for zapret routes, add IPv6 sniffing, and fix monitoring route display

This commit is contained in:
Dushnilin
2026-09-10 11:02:51 +03:00
parent cbae1a87fa
commit 240a939bbe
9 changed files with 183 additions and 13 deletions
@@ -17932,7 +17932,8 @@ function getDisplayName2(section) {
function buildRouteDisplayNames(sections) {
const map = {
"bypass-out": "Bypass",
"direct-out": "direct"
"direct-out": "direct",
"tachyon-failover": "Failover"
};
const serverMap = {};
const routeSectionItems = [];
@@ -17983,11 +17984,10 @@ function getRouteDisplayNameByTag(tag) {
return routeDisplayNames[tag];
}
const manualSection = routeSections.find(({ sectionName }) => {
if (!tag.startsWith(`${sectionName}-`) || !tag.endsWith("-out")) {
return false;
if (tag === sectionName) {
return true;
}
const middle = tag.slice(sectionName.length + 1, -4);
return /^\d+(?:-\d+)?$/.test(middle);
return tag.startsWith(`${sectionName}-`) && tag.endsWith("-out");
});
return manualSection?.displayName || "";
}