Skip to content

Commit b183e22

Browse files
committed
FIX: example.lua
1 parent ff69ef4 commit b183e22

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

scripts/example.lua

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
function process(packet)
22
if packet.size ~= 0 then -- skip the syn and ack
3-
local type = "REQ"
4-
if not packet.request then
5-
type = "RSP"
6-
end
73
local time_str = os.date('%Y-%m-%d %H:%M:%S', packet.tv_sec).."."..packet.tv_usec
84
print(string.format("%s %s:%d=>%s:%d %s %u %u %d %u %s",
95
time_str,
@@ -19,4 +15,4 @@ function process(packet)
1915
packet.payload -- payload
2016
))
2117
end
22-
end
18+
end

0 commit comments

Comments
 (0)