Update init.lua

This commit is contained in:
midoks
2023-03-05 17:37:01 +08:00
parent 3e244ed227
commit 046389df99
+1 -1
View File
@@ -346,7 +346,7 @@ local function waf_cc_increase()
if params['uri_request_args']['token'] then
local args_token = params['uri_request_args']['token']
if args_token == make_token then
ngx.shared.waf_limit:set(cache_token, 1, config['safe_verify']['time'])
ngx.shared.waf_limit:set(cache_token, 1, tonumber(config['safe_verify']['time']))
local data = get_return_state(0, "ok")
ngx.say(json.encode(data))
ngx.exit(200)