Template
1
0
mirror of https://github.com/bol-van/zapret2.git synced 2026-03-19 15:55:48 +00:00

zapret-obfs: fix ippxor=0 case

This commit is contained in:
bol-van
2026-01-27 19:59:36 +03:00
parent 4560ef6d5b
commit 314627d851

View File

@@ -121,7 +121,7 @@ function ippxor(ctx, desync)
local bdxor = need_dxor(desync.dis)
if bdxor then
DLOG("ippxor: dataxor out")
DLOG("ippxor: dataxor size="..#desync.dis.payload)
dxor(desync.dis)
end
@@ -143,12 +143,13 @@ function ippxor(ctx, desync)
DLOG_ERR("ippxor: could not rebuild packet")
return
end
if not bdxor and need_dxor(dis) then
DLOG("ippxor: dataxor in")
dxor(dis)
end
desync.dis = dis
end
if not bdxor and need_dxor(desync.dis) then
DLOG("ippxor: dataxor size="..#desync.dis.payload)
dxor(desync.dis)
end
return VERDICT_MODIFY + VERDICT_PRESERVE_NEXT
end