[Rspamd] Various fixes for Rspamd 2.0, neural network activated, autolearning activated (auto-keeps a ratio)

This commit is contained in:
andryyy committed 2019-10-12 13:14:34 +02:00
1 parent 8783ec4415
commit ee57b5921f
5 files changed
+52 -24

No files matched your search

+2 -1
View File
@@ -23,7 +23,7 @@ rspamd_config:register_symbol({
local redis_params = rspamd_parse_redis_server('keep_spam')
local ip = task:get_from_ip()
if not ip:is_valid() then
if ip == nil or not ip:is_valid() then
return false
end
@@ -174,6 +174,7 @@ rspamd_config:register_symbol({
end
return true
end,
flags = 'empty',
priority = 20
})