Skip to content

Commit

Permalink
Update init.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
midoks committed Mar 5, 2023
1 parent 3e244ed commit 046389d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/op_waf/waf/lua/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 046389d

Please sign in to comment.