Fix bug in proxy
This commit is contained in:
1 parent
0e9f6b58a6
commit
a839fd7798
1 file changed
+3
-2
@@ -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 => {
|
||||
|
||||
Reference in new issue
Block a user