zapret-auto: check track

This commit is contained in:
bol-van committed 2026-01-22 23:02:54 +03:00
1 parent 1cffa0f5ec
commit 30044e8c61
1 file changed
+2 -2
+2 -2
View File
@@ -179,7 +179,7 @@ function standard_failure_detector(desync, crec)
DLOG("standard_failure_detector: not counting incoming RST s"..seq.." beyond s"..arg.inseq) DLOG("standard_failure_detector: not counting incoming RST s"..seq.." beyond s"..arg.inseq)
end end
end end
elseif not arg.no_http_redirect and desync.l7payload=="http_reply" and desync.track.hostname then elseif not arg.no_http_redirect and desync.l7payload=="http_reply" and desync.track and desync.track.hostname then
local hdis = http_dissect_reply(desync.dis.payload) local hdis = http_dissect_reply(desync.dis.payload)
if hdis and (hdis.code==302 or hdis.code==307) then if hdis and (hdis.code==302 or hdis.code==307) then
local idx_loc = array_field_search(hdis.headers, "header_low", "location") local idx_loc = array_field_search(hdis.headers, "header_low", "location")
@@ -341,7 +341,7 @@ function circular(ctx, desync)
orchestrate(ctx, desync) orchestrate(ctx, desync)
if not desync.track then if not desync.track then
DLOG("circular: conntrack is missing but required") DLOG_ERR("circular: conntrack is missing but required")
return return
end end