From 4c20caf5934e7c1be27288bce5159c8cd0474493 Mon Sep 17 00:00:00 2001 From: sneak Date: Fri, 20 Nov 2026 05:13:15 +0000 Subject: [PATCH] waf: countAnomalies no longer calls every threshold off the default The thresholds per netblock and per AS number are now on by default, so the comment's "the default" was false. Model: opus-5-5 --- internal/waf/request.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/waf/request.go b/internal/waf/request.go index 1555704..e3f7d5a 100644 --- a/internal/waf/request.go +++ b/internal/waf/request.go @@ -405,7 +405,7 @@ func (rq *request) addToHistory() { // SWW_WAF_RATE_LIMIT_EXEMPT_NETS, and one for a path in // SWW_WAF_RATE_LIMIT_EXEMPT_PATHS are counted too. It is counted for its // client's AS number when answerAtTheEnd gives one. With every anomaly -// threshold off, the default, it does nothing. +// threshold off, it does nothing. func (rq *request) countAnomalies() { if !anomalyThresholdsSet(rq.h.config) { return