From 55216c34c63787ab6cbd5044e1a0e318efe184e8 Mon Sep 17 00:00:00 2001 From: sneak Date: Fri, 20 Nov 2026 00:54:42 +0000 Subject: [PATCH] waf: the verdict comment no longer reads as banning nothing The doc comment of verdict said a verdict of afterAnswer or onReport "bans and refuses nothing", which reads as banning nothing, while refusalLimit and byteLimits give one only when they ban. It now says that such a verdict refuses nothing. Model: opus-5-5 --- internal/waf/heuristics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/waf/heuristics.go b/internal/waf/heuristics.go index 10316df..157d92a 100644 --- a/internal/waf/heuristics.go +++ b/internal/waf/heuristics.go @@ -45,7 +45,7 @@ type refusesWithoutLookup interface { // the log line names, the status the visitor is answered with, and the figures // the heuristic acted on, by name, such as the count and the limit. A status of // 0 closes the visitor's connection without an answer. A verdict of afterAnswer -// or onReport bans and refuses nothing, and has neither action nor status. +// or onReport refuses nothing, and has neither action nor status. type verdict struct { action requestlog.Action status int