Enhance icon extraction by incorporating port information into output

This commit is contained in:
2026-02-19 00:05:28 +03:00
parent 6bb3ed119f
commit 30c3e29a19

View File

@@ -333,7 +333,12 @@ function extractIconTagsAndStrip(name) {
} }
} }
return { stripped: s.replace(/\s+/g, " ").trim(), tags: uniq(tags) }; const typ = safeStr(proxy && proxy.type) || "";
const port = safeStr(proxy && proxy.port);
const portSup = portToFancy(port, typ);
return portSup & { stripped: s.replace(/\s+/g, " ").trim(), tags: uniq(tags) };
} }
function detectCountryByName(name) { function detectCountryByName(name) {