summaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/once_received.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/lua/once_received.lua')
-rw-r--r--src/plugins/lua/once_received.lua6
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