From e2000089ab9e8b4873b047a59678846a22607ca2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=89=E5=AE=89=E7=A7=91=E6=8A=80?= Date: Wed, 21 Sep 2022 08:32:01 +0800 Subject: [PATCH] Update anti-cc.lua --- rules/anti-cc.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rules/anti-cc.lua b/rules/anti-cc.lua index d79265f..cf8e955 100644 --- a/rules/anti-cc.lua +++ b/rules/anti-cc.lua @@ -10,9 +10,9 @@ local sh = ngx.shared.ipCache -local c, f = sh:get(waf.ip) +local c, f = sh:get("cc" .. waf.ip) -if not waf.startWith(waf.toLower(waf.uri),"/api/") then +if not waf.startWith(waf.toLower(waf.uri), "/api/") then return false end