Browse Source

[Minor] Further ip_score sanity fix

tags/2.0
Vsevolod Stakhov 4 years ago
parent
commit
bb61a273fd
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      lualib/lua_cfg_transform.lua

+ 5
- 1
lualib/lua_cfg_transform.lua View File

@@ -360,7 +360,7 @@ return function(cfg)
end

-- Deal with IP_SCORE
if cfg.ip_score then
if cfg.ip_score and (cfg.ip_score.servers or cfg.redis) then
logger.warnx(rspamd_config, 'ip_score module is deprecated in honor of reputation module!')

if not cfg.reputation then
@@ -384,6 +384,10 @@ return function(cfg)
}
}

if cfg.ip_score.servers then
cfg.reputation.rules.ip_score.backend.redis.servers = cfg.ip_score.servers
end

if cfg.symbols and cfg.symbols['IP_SCORE'] then
local t = cfg.symbols['IP_SCORE']


Loading…
Cancel
Save