diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-21 14:58:21 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-21 15:04:02 +0100 |
commit | e72d601aa62fb517415e77fb5a4de95651939872 (patch) | |
tree | 93c5a5ced9929004e572a9e20a1648645595012d /src/plugins/lua/once_received.lua | |
parent | 9c549e66a047b61d71e087617f67932781158f6b (diff) | |
download | rspamd-e72d601aa62fb517415e77fb5a4de95651939872.tar.gz rspamd-e72d601aa62fb517415e77fb5a4de95651939872.zip |
Fix lua plugins with the new DNS API.
Diffstat (limited to 'src/plugins/lua/once_received.lua')
-rw-r--r-- | src/plugins/lua/once_received.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/lua/once_received.lua b/src/plugins/lua/once_received.lua index 7cbdacf50..f4502e504 100644 --- a/src/plugins/lua/once_received.lua +++ b/src/plugins/lua/once_received.lua @@ -79,8 +79,10 @@ local function check_quantity_received (task) if r['real_ip'] and r['real_ip']:is_valid() then -- Try to resolve it again - task:get_resolver():resolve_ptr(task:get_session(), task:get_mempool(), - r['real_ip']:to_string(), recv_dns_cb) + task:get_resolver():resolve_ptr({task = task, + name = r['real_ip']:to_string(), + callback = recv_dns_cb + }) else task:insert_result(symbol_strict, 1) end |