diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-05-04 12:17:24 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-05-04 12:17:24 +0100 |
commit | 06f9ed1d12b9096f722ab5ea387cd805e4b17290 (patch) | |
tree | b2564c0655412adf166feda7ab2de1f627de8d6f /lualib | |
parent | 60a806d99dd7c49bdfa2a50f0c1b70e3580b5385 (diff) | |
download | rspamd-06f9ed1d12b9096f722ab5ea387cd805e4b17290.tar.gz rspamd-06f9ed1d12b9096f722ab5ea387cd805e4b17290.zip |
[Minor] Neural: Do not filter static profiles
Diffstat (limited to 'lualib')
-rw-r--r-- | lualib/plugins/neural.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lualib/plugins/neural.lua b/lualib/plugins/neural.lua index 557133591..64d21ce37 100644 --- a/lualib/plugins/neural.lua +++ b/lualib/plugins/neural.lua @@ -653,7 +653,11 @@ local function process_rules_settings() end -- Generic stuff - selt.symbols = fun.totable(fun.filter(filter_symbols_predicate, selt.symbols)) + if not profile then + -- Do filtering merely if we are using a dynamic profile + selt.symbols = fun.totable(fun.filter(filter_symbols_predicate, selt.symbols)) + end + table.sort(selt.symbols) selt.digest = lua_util.table_digest(selt.symbols) |