]> source.dussan.org Git - rspamd.git/commitdiff
Fix initialization order.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 26 Feb 2015 22:55:57 +0000 (22:55 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 26 Feb 2015 22:56:50 +0000 (22:56 +0000)
src/plugins/lua/ip_score.lua

index b1b937ef770ae549b12581a2514382a7db6e7486..907c6773d0b7781da25704317646f37f855e6c5c 100644 (file)
@@ -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