wafris 0.8.0 → 0.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lua/dist/wafris_core.lua +3 -3
- data/lib/wafris/configuration.rb +0 -1
- data/lib/wafris/version.rb +1 -1
- data/lib/wafris.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4648b968fb97b4c210848c124e505d4fd352f4d5c4342aff63aa972f82967db0
|
4
|
+
data.tar.gz: 7a13b0c631ba0dd8b7730c08743ca038e45da6bf2aee84e16c85ea4e87c57c73
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e6fba1bd54b344308e61629d1763d503c501d55304c84725ae55743410691ea7d92a6542cca96df26415126a3d6993bca062b5c88b315d33dff748e5182ad73
|
7
|
+
data.tar.gz: fe7c14c52b91ad41c8c8f2d92d7f6ddfe2c1285880e34c18904140f0cd9ffe41ee0de677bd84f39af198c97a4a6735bdc39bf255078a1e436551be74f27b75e5
|
@@ -67,7 +67,7 @@ local function add_to_graph_timebucket(timebucket, request_id)
|
|
67
67
|
local key = wafris_prefix .. "gr-ct:"
|
68
68
|
redis.call("PFADD", key .. timebucket, request_id)
|
69
69
|
-- Expire the key after 25 hours if it has no expiry
|
70
|
-
redis.call("EXPIRE", key, 90000
|
70
|
+
redis.call("EXPIRE", key, 90000)
|
71
71
|
end
|
72
72
|
|
73
73
|
-- For: Leaderboard of IPs with Request count as score
|
@@ -75,7 +75,7 @@ local function increment_timebucket_for(type, timebucket, property)
|
|
75
75
|
local key = wafris_prefix .. type .. "lb:" .. timebucket
|
76
76
|
redis.call("ZINCRBY", key, 1, property)
|
77
77
|
-- Expire the key after 25 hours if it has no expiry
|
78
|
-
redis.call("EXPIRE", key, 90000
|
78
|
+
redis.call("EXPIRE", key, 90000)
|
79
79
|
end
|
80
80
|
|
81
81
|
local function increment_partial_hourly_request_counters(unix_time_milliseconds)
|
@@ -85,7 +85,7 @@ local function increment_partial_hourly_request_counters(unix_time_milliseconds)
|
|
85
85
|
local key = wafris_prefix .. "hr-ct:" .. timebucket
|
86
86
|
redis.call("INCR", key)
|
87
87
|
-- Expire the key after 61 minutes if it has no expiry
|
88
|
-
redis.call("EXPIRE", key, 3660
|
88
|
+
redis.call("EXPIRE", key, 3660)
|
89
89
|
end
|
90
90
|
end
|
91
91
|
|
data/lib/wafris/configuration.rb
CHANGED
data/lib/wafris/version.rb
CHANGED
data/lib/wafris.rb
CHANGED