Skip to content

Commit

Permalink
Update init.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
loveshell committed Nov 12, 2013
1 parent 27ab0cf commit 3a61de5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3a61de5

Please sign in to comment.