Browse Source

[Minor] Start moving of ip reputation to the new framework

tags/1.7.0
Vsevolod Stakhov 6 years ago
parent
commit
37414297fe
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      src/plugins/lua/reputation.lua

+ 5
- 0
src/plugins/lua/reputation.lua View File

@@ -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 = {

Loading…
Cancel
Save