diff --git a/lua/zapret-pcap.lua b/lua/zapret-pcap.lua index 32d9ebd..d0f86c3 100644 --- a/lua/zapret-pcap.lua +++ b/lua/zapret-pcap.lua @@ -26,8 +26,8 @@ function pcap(ctx, desync) local fn_cache_name = desync.func_instance.."_fn" if not _G[fn_cache_name] then _G[fn_cache_name] = writeable_file_name(desync.arg.file) - -- overwrite file if not desync.arg.keep then + -- overwrite file os.remove(_G[fn_cache_name]) end end