Fix Proxy 2

This commit is contained in:
proitlab committed 2026-07-14 19:21:23 +07:00
1 parent fa09e36cdf
commit 9e7e8cc6d9
1 file changed
+2 -3
+2 -3
View File
@@ -134,9 +134,8 @@ async function fetchFlows(limit = 10000, agentUuid = null, siteUuid = null) {
const sniList = [];
if (sniRaw && Array.isArray(sniRaw)) {
for (const r of sniRaw) {
const sni = r.tls_sni ?? r.label;
const sniStr = (sni === null || sni === undefined) ? '' : String(sni);
if (sniStr.trim() !== '') sniList.push(sniStr.replace(/^\*\./, '').trim());
const sni = typeof r.tls_sni === 'object' ? r.tls_sni?.label : r.tls_sni;
if (sni && typeof sni === 'string' && sni.trim() !== '') sniList.push(sni.replace(/^\*\./, '').trim());
}
}
return raw.map(r => {