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

zapret-antidpi: oob dlog drop_ack event

This commit is contained in:
bol-van
2026-01-16 14:56:39 +03:00
parent 801dec81c8
commit 2a3b6f2a8b

View File

@@ -1078,11 +1078,14 @@ function oob(ctx, desync)
return VERDICT_MODIFY
elseif pos==1 then
local data = desync.reasm_data or desync.dis.payload
if not desync.arg.drop_ack and #data==0 then
DLOG("oob: sending empty ACK")
if not rawsend_dissect(desync.dis,rawsend_opts_base(desync)) then return end
end
if #data>0 then
if #data==0 then
if desync.arg.drop_ack then
DLOG("oob: dropping empty ACK")
else
DLOG("oob: sending empty ACK")
if not rawsend_dissect(desync.dis,rawsend_opts_base(desync)) then return end
end
else
local oob = desync.arg.char or (desync.arg.byte and bu8(desync.arg.byte) or nil) or "\x00"
local dis_oob = deepcopy(desync.dis)
local urp