diff --git a/index.js b/index.js index fd11a18..cd35a2a 100644 --- a/index.js +++ b/index.js @@ -104,8 +104,8 @@ const processLogLine = async (line, test = false) => { const ips = getServerIPs(); if (!Array.isArray(ips)) return log(`For some reason, 'ips' from 'getServerIPs()' is not an array. Received: ${ips}`, 3, true); - if (ips.includes(srcIp)) return log(`Ignoring own IP address: PROTO=${proto?.toLowerCase()} SRC=${srcIp} DPT=${dpt} ID=${data.id}`, 2, true); - if (isLocalIP(srcIp)) return log(`Ignoring local IP address: PROTO=${proto?.toLowerCase()} SRC=${srcIp} DPT=${dpt} ID=${data.id}`, 2, true); + if (ips.includes(srcIp)) return log(`Ignoring own IP address: PROTO=${proto?.toLowerCase()} SRC=${srcIp} DPT=${dpt} ID=${data.id}`, 0, true); + if (isLocalIP(srcIp)) return log(`Ignoring local IP address: PROTO=${proto?.toLowerCase()} SRC=${srcIp} DPT=${dpt} ID=${data.id}`, 0, true); if (proto === 'UDP') { if (EXTENDED_LOGS) log(`Skipping UDP traffic: SRC=${srcIp} DPT=${dpt} ID=${data.id}`); return; diff --git a/scripts b/scripts index 056d34d..0688a89 160000 --- a/scripts +++ b/scripts @@ -1 +1 @@ -Subproject commit 056d34d9cbf4ccca5fcdf15c4cf74b611b67a2ac +Subproject commit 0688a8955e44e21f5ae8db1d691918c200d40725