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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user