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

zapret-pcap: use reconstruct_dissect if under orchestrator

This commit is contained in:
bol-van
2026-02-22 12:48:20 +03:00
parent 2a4195070f
commit 46d4208c76

View File

@@ -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