]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix selector based ratelimit configuration
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 21 Aug 2018 16:10:36 +0000 (17:10 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 21 Aug 2018 16:10:36 +0000 (17:10 +0100)
src/plugins/lua/ratelimit.lua

index 8c0c48387977ee9adcc3f6dd201e89179674b042..f59332f01d1bb64efccfacd2203510604b9a9d9c 100644 (file)
@@ -649,7 +649,7 @@ if opts then
       if type(lim) == 'table' and lim.selector and lim.bucket then
         settings.limits[t] = {
           selector = lua_selectors.parse_selector(rspamd_config, lim.selector),
-          buckets = parse_limit(t, lim)
+          buckets = parse_limit(t, lim.bucket)
         }
       else
         buckets = parse_limit(t, lim)