Commit 9b618922 by gongyang

完成秒速白名单开发

parent 677af6bf
Showing with 1 additions and 1 deletions
...@@ -196,11 +196,11 @@ if err == nil then ...@@ -196,11 +196,11 @@ if err == nil 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
timestamp_seconds = os.time() timestamp_seconds = os.time()
ngx.say(timestamp_seconds)
if red:get(timestamp_seconds) == ngx.null then if red:get(timestamp_seconds) == ngx.null then
red:set(timestamp_seconds,0) red:set(timestamp_seconds,0)
end end
......
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