Update init.lua
parent
27ab0cf42d
commit
3a61de52ff
3
init.lua
3
init.lua
|
@ -159,9 +159,10 @@ end
|
||||||
|
|
||||||
function denycc()
|
function denycc()
|
||||||
if CCDeny then
|
if CCDeny then
|
||||||
|
local uri=ngx.var.request_uri
|
||||||
CCcount=tonumber(string.match(CCrate,'(.*)/'))
|
CCcount=tonumber(string.match(CCrate,'(.*)/'))
|
||||||
CCseconds=tonumber(string.match(CCrate,'/(.*)'))
|
CCseconds=tonumber(string.match(CCrate,'/(.*)'))
|
||||||
local ua = getClientIp()..ngx.var.http_user_agent
|
local ua = getClientIp()..uri
|
||||||
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