mirror of
https://github.com/rspamd/rspamd.git
synced 2024-09-13 23:56:50 +02:00
[Minor] Add sanity check
This commit is contained in:
parent
456880ef0a
commit
b45c0b5360
@ -369,6 +369,8 @@ return function(cfg)
|
||||
}
|
||||
end
|
||||
|
||||
if not cfg.reputation.rules then cfg.reputation.rules = {} end
|
||||
|
||||
if not fun.any(function(_, v) return v.selector and v.selector.ip end,
|
||||
cfg.reputation.rules) then
|
||||
logger.infox(rspamd_config, 'attach ip reputation element to use it')
|
||||
|
Loading…
Reference in New Issue
Block a user