[Minor] Neural: Enable cfg.options.check_all_filters when neural is enabled

This commit is contained in:
Vsevolod Stakhov 2019-07-09 12:31:34 +01:00
parent bd5e5291eb
commit 3d3687fa13

View File

@ -346,5 +346,17 @@ return function(cfg)
end
end
-- If neural network is enabled we MUST have `check_all_filters` flag
if cfg.neural then
if not cfg.options then
cfg.options = {}
end
if not cfg.options.check_all_filters then
logger.infox(rspamd_config, 'enable `options.check_all_filters` for neural network')
cfg.options.check_all_filters = true
end
end
return ret, cfg
end