Update init.lua

pull/13/head
loveshell 2013-11-08 10:16:37 +08:00
parent 7ab2b22eda
commit aaf0dfc2a9
1 changed files with 1 additions and 1 deletions

View File

@ -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