Fix bug in proxy

This commit is contained in:
proitlab committed 2026-07-14 19:11:41 +07:00
1 parent 0e9f6b58a6
commit a839fd7798
1 file changed
+3 -2
+3 -2
View File
@@ -134,8 +134,9 @@ 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;
if (sni && sni.trim() !== '') sniList.push(sni.replace(/^\*\./, '').trim());
const sni = r.tls_sni ?? r.label;
const sniStr = (sni === null || sni === undefined) ? '' : String(sni);
if (sniStr.trim() !== '') sniList.push(sniStr.replace(/^\*\./, '').trim());
}
}
return raw.map(r => {