From d6d69d0192590ce2aeef315356a7b9cdccf03e79 Mon Sep 17 00:00:00 2001 From: WeebDataHoarder Date: Fri, 25 Apr 2025 11:29:13 +0200 Subject: [PATCH] metrics: track DEFAULT rule hit --- lib/http.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/http.go b/lib/http.go index 8f3f84c..21a26ca 100644 --- a/lib/http.go +++ b/lib/http.go @@ -129,6 +129,8 @@ func (state *State) handleRequest(w http.ResponseWriter, r *http.Request) { } } + state.RuleHit(r, "DEFAULT", lg) + // default pass _, _ = action.Pass{}.Handle(lg, w, r, func() http.Handler { r.Header.Set("X-Away-Rule", "DEFAULT")