From affce879ad2077d6a9e8958e5269f62c31b97558 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 26 Feb 2015 22:55:57 +0000 Subject: [PATCH] Fix initialization order. --- src/plugins/lua/ip_score.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/plugins/lua/ip_score.lua b/src/plugins/lua/ip_score.lua index b1b937ef77..907c6773d0 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 -- 2.47.3