From f9fa83c49df2823c86dbf0d5716b54b2c564ea92 Mon Sep 17 00:00:00 2001 From: loveshell <82163261@qq.com> Date: Fri, 29 Nov 2013 13:06:57 +0800 Subject: [PATCH] fix token --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 35070f5..7605939 100644 --- a/init.lua +++ b/init.lua @@ -164,7 +164,7 @@ function denycc() local uri=ngx.var.request_uri CCcount=tonumber(string.match(CCrate,'(.*)/')) CCseconds=tonumber(string.match(CCrate,'/(.*)')) - local ua = getClientIp()..uri + local token = getClientIp()..uri local limit = ngx.shared.limit local req,_=limit:get(token) if req then