Fixes for srcIp and dstIp

This commit is contained in:
Sefinek committed 2025-04-28 07:13:29 +02:00
1 parent d4a9491d80
commit 321cd89a1a
1 file changed
+2 -2
+2 -2
View File
@@ -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+)/),