Template
1
0
mirror of https://github.com/bol-van/zapret2.git synced 2026-03-14 06:13:09 +00:00

lua: payload check for drop

This commit is contained in:
bol-van
2025-11-22 21:12:29 +03:00
parent a7e6f07ae4
commit a1f28e4c4a
3 changed files with 16 additions and 16 deletions

View File

@@ -83,10 +83,10 @@ function pktdebug(ctx, desync)
end
-- drop packet
-- standard args : direction
-- standard args : direction, payload
function drop(ctx, desync)
direction_cutoff_opposite(ctx, desync, "any")
if direction_check(desync, "any") then
if direction_check(desync, "any") and payload_check(desync,"all") then
DLOG("drop")
return VERDICT_DROP
end