Update init.lua
parent
7ab2b22eda
commit
aaf0dfc2a9
2
init.lua
2
init.lua
|
@ -157,7 +157,7 @@ function denycc()
|
||||||
if CCDeny then
|
if CCDeny then
|
||||||
CCcount=tonumber(string.match(CCrate,'(.*)/'))
|
CCcount=tonumber(string.match(CCrate,'(.*)/'))
|
||||||
CCseconds=tonumber(string.match(CCrate,'/(.*)'))
|
CCseconds=tonumber(string.match(CCrate,'/(.*)'))
|
||||||
local token=getClientIp()..ngx.var.request_filename
|
local ua = getClientIp()..ngx.var.http_user_agent
|
||||||
local limit = ngx.shared.limit
|
local limit = ngx.shared.limit
|
||||||
local req,_=limit:get(token)
|
local req,_=limit:get(token)
|
||||||
if req then
|
if req then
|
||||||
|
|
Loading…
Reference in New Issue