summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Adamek <michal@adamkovi.net>2018-05-04 11:50:41 +0200
committerMichal Adamek <michal@adamkovi.net>2018-05-04 11:50:41 +0200
commita60be6c6a5df1cc34c1720ca6d6caf775e15e30f (patch)
treec37fff816c443551115e21a1e672ffe44308e642
parent1422733ad4e5e1bf9ca3559ab680daa8e6629a85 (diff)
downloadrspamd-a60be6c6a5df1cc34c1720ca6d6caf775e15e30f.tar.gz
rspamd-a60be6c6a5df1cc34c1720ca6d6caf775e15e30f.zip
Fixed typo
-rw-r--r--rules/headers_checks.lua2
-rw-r--r--src/plugins/lua/ratelimit.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/rules/headers_checks.lua b/rules/headers_checks.lua
index 065a9d8f7..43cbea23e 100644
--- a/rules/headers_checks.lua
+++ b/rules/headers_checks.lua
@@ -75,7 +75,7 @@ rspamd_config:register_symbol{
parent = rcvd_cb_id,
type = 'virtual',
description = 'Two received',
- group = 'header',
+ group = 'headers',
}
rspamd_config:register_symbol{
name = 'RCVD_COUNT_THREE',
diff --git a/src/plugins/lua/ratelimit.lua b/src/plugins/lua/ratelimit.lua
index 466ebafce..e060fe084 100644
--- a/src/plugins/lua/ratelimit.lua
+++ b/src/plugins/lua/ratelimit.lua
@@ -233,7 +233,7 @@ end
local keywords = {
['ip'] = {
- get_value = function(task)
+ ['get_value'] = function(task)
local ip = task:get_ip()
if ip and ip:is_valid() then return tostring(ip) end
return nil