commit b45c0b5: [Minor] Add sanity check
Vsevolod Stakhov
vsevolod at highsecure.ru
Fri Aug 16 11:14:03 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-08-16 12:13:14 +0100
URL: https://github.com/rspamd/rspamd/commit/b45c0b5360ac0c77a49bdef30740da5902391416 (HEAD -> master)
[Minor] Add sanity check
---
lualib/lua_cfg_transform.lua | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lualib/lua_cfg_transform.lua b/lualib/lua_cfg_transform.lua
index ac328f86f..af9ae6cc2 100644
--- a/lualib/lua_cfg_transform.lua
+++ b/lualib/lua_cfg_transform.lua
@@ -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')
More information about the Commits
mailing list