Skip to content

Commit

Permalink
fix token
Browse files Browse the repository at this point in the history
  • Loading branch information
loveshell committed Nov 29, 2013
1 parent 339d5eb commit f9fa83c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f9fa83c

Please sign in to comment.