aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-24 14:27:56 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-24 14:27:56 +0100
commit50c7561905a569d984d66e145e859aca9bef7d6c (patch)
tree1cf069798d974e74187083479431da997d980f28 /src/plugins
parent52833b8ca40da9d81d40e95ff8383fcbc9a10372 (diff)
downloadrspamd-50c7561905a569d984d66e145e859aca9bef7d6c.tar.gz
rspamd-50c7561905a569d984d66e145e859aca9bef7d6c.zip
Fix ip_score initialization.
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/lua/ip_score.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/ip_score.lua b/src/plugins/lua/ip_score.lua
index 1e1fd92a1..a4759aecf 100644
--- a/src/plugins/lua/ip_score.lua
+++ b/src/plugins/lua/ip_score.lua
@@ -326,8 +326,8 @@ local configure_ip_score_module = function()
for k,v in pairs(opts) do
options[k] = v
end
- if options['servers'] then
- upstreams = upstream_list.create(opts['servers'], default_port)
+ if options['servers'] and options['servers'] ~= '' then
+ upstreams = upstream_list.create(options['servers'], default_port)
if not upstreams then
rspamd_logger.err('no servers are specified')
end