Browse Source

fix token

pull/13/head
loveshell 11 years ago
parent
commit
f9fa83c49d
  1. 2
      init.lua

2
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

Loading…
Cancel
Save