summaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/once_received.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-11-24 11:58:32 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-11-24 11:58:32 +0000
commite6b6f6bb9c0d29c261e2c4c9457b552b82317136 (patch)
tree9f5acd9d46e30753fd844bda793284310b89b768 /src/plugins/lua/once_received.lua
parente8736ad3af56d9e8087e768d49b960c351732b9e (diff)
downloadrspamd-e6b6f6bb9c0d29c261e2c4c9457b552b82317136.tar.gz
rspamd-e6b6f6bb9c0d29c261e2c4c9457b552b82317136.zip
[Rework] Use new maps add function
Diffstat (limited to 'src/plugins/lua/once_received.lua')
-rw-r--r--src/plugins/lua/once_received.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/lua/once_received.lua b/src/plugins/lua/once_received.lua
index 8c7ed0777..65e6127c9 100644
--- a/src/plugins/lua/once_received.lua
+++ b/src/plugins/lua/once_received.lua
@@ -177,7 +177,8 @@ if opts then
good_hosts = v
end
elseif n == 'whitelist' then
- whitelist = rspamd_config:add_radix_map (v, 'once received whitelist')
+ whitelist = rspamd_map_add('once_received', 'whitelist', 'radix',
+ 'once received whitelist')
end
end