From 05f54086cf23878c77957eea0a8fb0fee4dcb2eb Mon Sep 17 00:00:00 2001 From: bol-van Date: Tue, 23 Dec 2025 22:14:52 +0300 Subject: [PATCH] zapret-auto: add reset to detector defaults --- lua/zapret-auto.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lua/zapret-auto.lua b/lua/zapret-auto.lua index 42de9eb..96f8028 100644 --- a/lua/zapret-auto.lua +++ b/lua/zapret-auto.lua @@ -122,7 +122,8 @@ function standard_detector_defaults(arg) udp_in = tonumber(arg.udp_in) or 1, udp_out = tonumber(arg.udp_out) or 4, no_http_redirect = arg.no_http_redirect, - no_rst = arg.no_rst + no_rst = arg.no_rst, + reset = arg.reset } end @@ -152,7 +153,7 @@ function standard_failure_detector(desync, crec) crec.retrans = crec.retrans and (crec.retrans+1) or 1 DLOG("standard_failure_detector: retransmission "..crec.retrans.."/"..arg.retrans) trigger = crec.retrans>=arg.retrans - if trigger and desync.arg.reset then + if trigger and arg.reset then local dis = deepcopy(desync.dis) dis.payload = nil dis_reverse(dis)