From aaf0dfc2a9f38675419b8183e349d1d7a7b679a3 Mon Sep 17 00:00:00 2001 From: loveshell <82163261@qq.com> Date: Fri, 8 Nov 2013 10:16:37 +0800 Subject: [PATCH] Update init.lua --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 468cede..3fc0a36 100644 --- a/init.lua +++ b/init.lua @@ -157,7 +157,7 @@ function denycc() if CCDeny then CCcount=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 req,_=limit:get(token) if req then