Fix Proxy 2 #5
@@ -134,9 +134,8 @@ async function fetchFlows(limit = 10000, agentUuid = null, siteUuid = null) {
|
|||||||
const sniList = [];
|
const sniList = [];
|
||||||
if (sniRaw && Array.isArray(sniRaw)) {
|
if (sniRaw && Array.isArray(sniRaw)) {
|
||||||
for (const r of sniRaw) {
|
for (const r of sniRaw) {
|
||||||
const sni = r.tls_sni ?? r.label;
|
const sni = typeof r.tls_sni === 'object' ? r.tls_sni?.label : r.tls_sni;
|
||||||
const sniStr = (sni === null || sni === undefined) ? '' : String(sni);
|
if (sni && typeof sni === 'string' && sni.trim() !== '') sniList.push(sni.replace(/^\*\./, '').trim());
|
||||||
if (sniStr.trim() !== '') sniList.push(sniStr.replace(/^\*\./, '').trim());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return raw.map(r => {
|
return raw.map(r => {
|
||||||
|
|||||||
Reference in new issue
Block a user