mirror of
https://github.com/rspamd/rspamd.git
synced 2024-09-13 23:56:50 +02:00
[Minor] Neural: Enable cfg.options.check_all_filters when neural is enabled
This commit is contained in:
parent
bd5e5291eb
commit
3d3687fa13
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user