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

zapret-auto: move crec record get

This commit is contained in:
bol-van
2025-12-07 20:01:29 +03:00
parent 0f8cfd7022
commit 4c00f11c15

View File

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