Commit 677af6bf by gongyang

完成秒速白名单开发

parent 7df32362
Showing with 2 additions and 0 deletions
...@@ -194,7 +194,9 @@ if err == nil then ...@@ -194,7 +194,9 @@ if err == nil then
--不是白名单里面的,超过限制次数,跳去302检验,检验成功,加入秒速白名单 --不是白名单里面的,超过限制次数,跳去302检验,检验成功,加入秒速白名单
if tonumber(red:get('waf_second_white_ip_open')) == 1 and wafcheck.SecondWhiteIp(user_ip,red) ~= 'exist' then if tonumber(red:get('waf_second_white_ip_open')) == 1 and wafcheck.SecondWhiteIp(user_ip,red) ~= 'exist' then
second_white_ip_expire_time = tonumber(red:get('waf_second_white_ip_time')) second_white_ip_expire_time = tonumber(red:get('waf_second_white_ip_time'))
ngx.say(second_white_ip_expire_time)
second_white_count = tonumber(red:get('waf_second_white_ip_time')) second_white_count = tonumber(red:get('waf_second_white_ip_time'))
--如果不存在则设为1 --如果不存在则设为1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment