Update init.lua

pull/13/head
loveshell 2013-11-12 08:06:03 +08:00
parent 27ab0cf42d
commit 3a61de52ff
1 changed files with 2 additions and 1 deletions

View File

@ -159,9 +159,10 @@ end
function denycc()
if CCDeny then
local uri=ngx.var.request_uri
CCcount=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 req,_=limit:get(token)
if req then