mirror of
https://github.com/bol-van/zapret2.git
synced 2026-03-13 22:03:09 +00:00
zapret-pcap: use reconstruct_dissect if under orchestrator
This commit is contained in:
@@ -34,6 +34,7 @@ function pcap(ctx, desync)
|
|||||||
if not f then
|
if not f then
|
||||||
error("pcap: could not write to '".._G[fn_cache_name].."'")
|
error("pcap: could not write to '".._G[fn_cache_name].."'")
|
||||||
end
|
end
|
||||||
pcap_write(f, raw_packet(ctx))
|
local raw = ctx and raw_packet(ctx) or reconstruct_dissect(desync.dis)
|
||||||
|
pcap_write(f, raw)
|
||||||
f:close()
|
f:close()
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user