From 6f73337017bf4e685f63c8e37d3c629669ecbff2 Mon Sep 17 00:00:00 2001 From: WeebDataHoarder <57538841+WeebDataHoarder@users.noreply.github.com> Date: Thu, 3 Apr 2025 06:33:05 +0200 Subject: [PATCH] Add extra challenge pass message for inline challenges --- lib/http.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/http.go b/lib/http.go index 18a884e..85e6b03 100644 --- a/lib/http.go +++ b/lib/http.go @@ -289,6 +289,8 @@ func (state *State) handleRequest(w http.ResponseWriter, r *http.Request) { if rule.Action == policy.RuleActionCHECK { goto nextRule } + state.getLogger(r).Warn("challenge passed", "rule", rule.Name, "rule_hash", rule.Hash, "challenge", challengeName) + // we pass the challenge early! r.Header.Set(fmt.Sprintf("X-Away-Challenge-%s-Verify", challengeName), "PASS")