Fixes
This commit is contained in:
parent
05e6631762
commit
438eed41bb
1 changed files with 2 additions and 2 deletions
4
index.js
4
index.js
|
|
@ -43,8 +43,8 @@ const processLogLine = async line => {
|
|||
proto: line.match(/PROTO=(\S+)/)?.[1] || null, // Protocol (TCP, UDP, ICMP, etc.)
|
||||
spt: line.match(/SPT=(\d+)/)?.[1] || null, // Source port
|
||||
dpt: line.match(/DPT=(\d+)/)?.[1] || null, // Destination port
|
||||
in: line.match(/IN=([\w]+)/)?.[1] || null, // Input interface
|
||||
out: line.match(/OUT=([\w]+)/)?.[1] || null, // Output interface
|
||||
in: line.match(/IN=(\w+)/)?.[1] || null, // Input interface
|
||||
out: line.match(/OUT=(\w+)/)?.[1] || null, // Output interface
|
||||
mac: line.match(/MAC=([\w:]+)/)?.[1] || null, // MAC address
|
||||
len: line.match(/LEN=(\d+)/)?.[1] || null, // Packet length
|
||||
ttl: line.match(/TTL=(\d+)/)?.[1] || null, // Time to live
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue