From 4c00f11c15927127b72864ab0ca7ea9e7678fbd9 Mon Sep 17 00:00:00 2001 From: bol-van Date: Sun, 7 Dec 2025 20:01:29 +0300 Subject: [PATCH] zapret-auto: move crec record get --- lua/zapret-auto.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/zapret-auto.lua b/lua/zapret-auto.lua index 1c30f76..1c8ff87 100644 --- a/lua/zapret-auto.lua +++ b/lua/zapret-auto.lua @@ -201,7 +201,6 @@ function circular(ctx, desync) local retrans = tonumber(desync.arg.retrans) or 3 local fails = tonumber(desync.arg.fails) or 3 local maxtime = tonumber(desync.arg.time) or 60 - local crec = automate_conn_record(desync) local failure_detector if desync.arg.detector then if type(_G[desync.arg.detector])~="function" then @@ -219,6 +218,7 @@ function circular(ctx, desync) local verdict = VERDICT_PASS if hrec.final~=hrec.nstrategy then + local crec = automate_conn_record(desync) if failure_detector(desync,crec,{retrans=retrans,maxseq=maxseq,seq_rst=seq_rst}) then if automate_failure_counter(hrec, crec, fails, maxtime) then -- circular strategy change