diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-02-26 22:55:57 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-02-26 22:56:50 +0000 |
commit | affce879ad2077d6a9e8958e5269f62c31b97558 (patch) | |
tree | 24651ed3c337774923a0b93addd887c09c02a9c0 /src | |
parent | 2f65edb588dbbdff37551724da85be15c955aeeb (diff) | |
download | rspamd-affce879ad2077d6a9e8958e5269f62c31b97558.tar.gz rspamd-affce879ad2077d6a9e8958e5269f62c31b97558.zip |
Fix initialization order.
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/lua/ip_score.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/lua/ip_score.lua b/src/plugins/lua/ip_score.lua index b1b937ef7..907c6773d 100644 --- a/src/plugins/lua/ip_score.lua +++ b/src/plugins/lua/ip_score.lua @@ -176,11 +176,11 @@ local configure_ip_score_module = function() if opts['prefix'] then prefix = opts['prefix'] end - end - if opts['servers'] then - upstreams = upstream_list.create(opts['servers'], default_port) - if not upstreams then - rspamd_logger.err('no servers are specified') + if opts['servers'] then + upstreams = upstream_list.create(opts['servers'], default_port) + if not upstreams then + rspamd_logger.err('no servers are specified') + end end end end |