waf: run the trap paths, rule files and Core Rule Set during the GeoJS wait (closes #405) #408

Merged
clawbot merged 5 commits from issue-405-decide-beside-lookup into next 2026-11-17 06:11:53 +01:00
2 changed files with 6 additions and 6 deletions
Showing only changes of commit b0a06aac63 - Show all commits

No files matched your search

+2 -2
View File
@@ -48,7 +48,7 @@ type besideLookupFindings struct {
// once, and what the other found is dropped. besideLookup has
// besideLookupTimeLimit; past it, the request is refused as
// ActionChecksTimedOut. Once both have let the request through, the heuristics
// of last run. ctx is the request's own context.
// of afterBesideLookup run. ctx is the request's own context.
func (rq *request) runBesideLookup(
ctx context.Context, lookedUp <-chan lookupResult,
) *verdict {
@@ -92,7 +92,7 @@ func (rq *request) runBesideLookup(
return v
}
return rq.runHeuristics(ctx, last(), rq.h.now())
return rq.runHeuristics(ctx, afterBesideLookup(), rq.h.now())
}
// findBesideLookup does the work of the heuristics of besideLookup on the
+4 -4
View File
@@ -77,10 +77,10 @@ func besideLookup() []heuristic {
}
}
// last are the heuristics that run once both lists above have let the request
// through. tag_deny runs a second time, on the tag rule_files and
// core_rule_set can add.
func last() []heuristic {
// afterBesideLookup are the heuristics that run once afterLookup and
// besideLookup have both let the request through. tag_deny runs a second time,
// on the tag rule_files and core_rule_set can add.
func afterBesideLookup() []heuristic {
return []heuristic{
tagDeny{},
}