metrics: track DEFAULT rule hit

This commit is contained in:
WeebDataHoarder
2025-04-25 11:29:13 +02:00
parent 47f9f6fee6
commit d6d69d0192

View File

@@ -129,6 +129,8 @@ func (state *State) handleRequest(w http.ResponseWriter, r *http.Request) {
} }
} }
state.RuleHit(r, "DEFAULT", lg)
// default pass // default pass
_, _ = action.Pass{}.Handle(lg, w, r, func() http.Handler { _, _ = action.Pass{}.Handle(lg, w, r, func() http.Handler {
r.Header.Set("X-Away-Rule", "DEFAULT") r.Header.Set("X-Away-Rule", "DEFAULT")