]> source.dussan.org Git - rspamd.git/commitdiff
Minor fixes to settings.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 15 Oct 2015 21:26:01 +0000 (22:26 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 15 Oct 2015 21:26:01 +0000 (22:26 +0100)
src/plugins/lua/settings.lua
test/functional/configs/stats.conf

index 80792ce2b67b96ea8226c836689ff15c12d89404..8c464431da4cc859009259f57134ec4c16944438 100644 (file)
@@ -29,7 +29,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 -- https://rspamd.com/doc/configuration/settings.html
 
 local set_section = rspamd_config:get_all_opt("settings")
-if not set_section then return end
+
 local settings = {
   [1] = {},
   [2] = {},
@@ -461,6 +461,8 @@ local function process_settings_map(string)
       process_settings_table(obj)
     end
   end
+
+  return res
 end
 
 if set_section[1] and type(set_section[1]) == "string" then
index c03c8b52e416e4cfe761a2ebb5288d72624164fd..06c1884aa6a2cc621b00596fbf411aff23a387f5 100644 (file)
@@ -59,3 +59,5 @@ classifier {
                path = ${STATSDIR}/rspamd-bats-cache.sqlite;
        }
 }
+
+settings {}