fix token

pull/13/head
loveshell 2013-11-29 13:06:57 +08:00
parent 339d5ebfec
commit f9fa83c49d
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@ function denycc()
local uri=ngx.var.request_uri 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()..uri local token = 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