From 321cd89a1ac6dbd3ad6c6e16693276f9086de73a Mon Sep 17 00:00:00 2001 From: Sefinek Date: Mon, 28 Apr 2025 07:13:29 +0200 Subject: [PATCH] Fixes for srcIp and dstIp --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 62795d6..4714558 100644 --- a/index.js +++ b/index.js @@ -99,8 +99,8 @@ const processLogLine = async (line, test = false) => { const data = { timestamp: parseTimestamp(line), - srcIp: line.match(/SRC=([\d.]+)/)?.[1] || null, - dstIp: line.match(/DST=([\d.]+)/)?.[1] || null, + srcIp: line.match(/SRC=(\S+)/)?.[1] || null, + dstIp: line.match(/DST=(\S+)/)?.[1] || null, proto: line.match(/PROTO=(\S+)/)?.[1] || null, spt: parseNumber(line, /SPT=(\d+)/), dpt: parseNumber(line, /DPT=(\d+)/),