소스 검색

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

tags/1.7.0
Vsevolod Stakhov 6 년 전
부모
커밋
37414297fe
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5
    0
      src/plugins/lua/reputation.lua

+ 5
- 0
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 = {

Loading…
취소
저장