Browse Source

[Minor] Avoid callback symbol to be treated as normal

tags/2.6
Vsevolod Stakhov 3 years ago
parent
commit
936e100374
1 changed files with 6 additions and 1 deletions
  1. 6
    1
      src/plugins/lua/reputation.lua

+ 6
- 1
src/plugins/lua/reputation.lua View File

@@ -1168,9 +1168,14 @@ local function parse_rule(name, tbl)
end)

-- We now generate symbol for checking
local rule_type = 'normal'
if rule.selector.config.split_symbols then
rule_type = 'callback'
end

local id = rspamd_config:register_symbol{
name = rule.symbol,
type = 'normal',
type = rule_type,
callback = callback_gen(reputation_filter_cb, rule),
}


Loading…
Cancel
Save