diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-10-07 22:02:28 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-10-07 22:02:28 +0100 |
commit | 37414297fe03d16f0b3bdff174980c2984e652a3 (patch) | |
tree | a0f9c50a5b6e1570902769b580cb0b0ac2626f56 /src/plugins | |
parent | 94226d58fbdfb8fdacefbfa3b0f84b9e48578e34 (diff) | |
download | rspamd-37414297fe03d16f0b3bdff174980c2984e652a3.tar.gz rspamd-37414297fe03d16f0b3bdff174980c2984e652a3.zip |
[Minor] Start moving of ip reputation to the new framework
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/lua/reputation.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/lua/reputation.lua b/src/plugins/lua/reputation.lua index d19d0da94..82ee8d4d7 100644 --- a/src/plugins/lua/reputation.lua +++ b/src/plugins/lua/reputation.lua @@ -34,6 +34,9 @@ local default_expiry = 864000 -- 10 day by default -- IP Selector functions +local function ip_reputation_filter(task, rule) + +end -- Selectors are used to extract reputation tokens local ip_selector = { @@ -64,6 +67,8 @@ local ip_selector = { score_divisor = 1, }, --dependencies = {"ASN"}, -- ASN is a prefilter now... + filter = ip_reputation_filter, -- used to get scores + idempotent = ip_reputation_idempotent -- used to set scores } local selectors = { |