]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix logging of the enabled rate limits
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 6 Apr 2018 15:35:05 +0000 (16:35 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 6 Apr 2018 15:35:05 +0000 (16:35 +0100)
src/plugins/lua/ratelimit.lua

index 38405c4c2fc862a502506afb4493ef086ce49d6b..cf1d6a11eb082886eb3fa07e402a5fbcbc753e9f 100644 (file)
@@ -489,7 +489,7 @@ if opts then
 
   local enabled_limits = fun.totable(fun.map(function(t)
     return t
-  end, settings))
+  end, settings.limits))
   rspamd_logger.infox(rspamd_config,
           'enabled rate buckets: [%1]', table.concat(enabled_limits, ','))