feat: add new method and for db req and add to template max retry
Some checks failed
build / build (push) Failing after 1m48s

This commit is contained in:
d3m0k1d
2026-02-19 10:53:55 +03:00
parent 2e9b307194
commit 7f54db0cd4
5 changed files with 44 additions and 27 deletions

View File

@@ -76,14 +76,6 @@ func (j *Judge) Tribunal() {
statusMatch := rule.Status == "" || entry.Status == rule.Status
pathMatch := matchPath(entry.Path, rule.Path)
j.logger.Debug(
"Testing rule",
"rule", rule.Name,
"method_match", methodMatch,
"status_match", statusMatch,
"path_match", pathMatch,
)
if methodMatch && statusMatch && pathMatch {
ruleMatched = true
j.logger.Info("Rule matched", "rule", rule.Name, "ip", entry.IP)
@@ -93,7 +85,6 @@ func (j *Judge) Tribunal() {
j.logger.Error("Failed to check ban status", "ip", entry.IP, "error", err)
break
}
if banned {
j.logger.Info("IP already banned", "ip", entry.IP)
j.resultCh <- entry