From 9e7e8cc6d9913c1d1bc990f650e96d03f353a4b6 Mon Sep 17 00:00:00 2001 From: dsutanto Date: Tue, 14 Jul 2026 19:20:05 +0700 Subject: [PATCH] Fix Proxy 2 --- proxy/netifyClient.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/proxy/netifyClient.js b/proxy/netifyClient.js index 149b608..e17fd31 100644 --- a/proxy/netifyClient.js +++ b/proxy/netifyClient.js @@ -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 => { -- 2.54.0