diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-08-21 17:10:36 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-08-21 17:10:36 +0100 |
commit | 95b1d9bc213b7814b518ec893b970672f62b727e (patch) | |
tree | f889a393220af715a86bf1bc61d3445d4c1d3175 /src/plugins/lua/ratelimit.lua | |
parent | 4201529a7c3c4844ef53dd1d5761e13b9649b5e5 (diff) | |
download | rspamd-95b1d9bc213b7814b518ec893b970672f62b727e.tar.gz rspamd-95b1d9bc213b7814b518ec893b970672f62b727e.zip |
[Minor] Fix selector based ratelimit configuration
Diffstat (limited to 'src/plugins/lua/ratelimit.lua')
-rw-r--r-- | src/plugins/lua/ratelimit.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/ratelimit.lua b/src/plugins/lua/ratelimit.lua index 8c0c48387..f59332f01 100644 --- a/src/plugins/lua/ratelimit.lua +++ b/src/plugins/lua/ratelimit.lua @@ -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) |