Ver código fonte

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

tags/1.7.0
Vsevolod Stakhov 6 anos atrás
pai
commit
37414297fe
1 arquivos alterados com 5 adições e 0 exclusões
  1. 5
    0
      src/plugins/lua/reputation.lua

+ 5
- 0
src/plugins/lua/reputation.lua Ver arquivo

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

Carregando…
Cancelar
Salvar