aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-10-21 09:42:22 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-10-21 09:42:22 +0100
commitaacb7066482ef7a2cb966bfe2f76c73df80b7466 (patch)
tree98227389b1c00d29165f4337dfebabe4f0dc38e4 /src/plugins
parent42a4525a65755c22df803265b36c50df4db19091 (diff)
downloadrspamd-aacb7066482ef7a2cb966bfe2f76c73df80b7466.tar.gz
rspamd-aacb7066482ef7a2cb966bfe2f76c73df80b7466.zip
[Fix] Use proper syntax for making DNS requests
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/lua/asn.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/lua/asn.lua b/src/plugins/lua/asn.lua
index 86f1c42d2..2e5b8466e 100644
--- a/src/plugins/lua/asn.lua
+++ b/src/plugins/lua/asn.lua
@@ -74,8 +74,9 @@ local function asn_check(task)
asn_set(parts[1], parts[2], parts[3])
end
- task:get_resolver():resolve_txt(task:get_session(), task:get_mempool(),
- req_name, rspamd_dns_cb)
+ task:get_resolver():resolve_txt({task = task,
+ name = req_name,
+ callback = rspamd_dns_cb})
end
local ip = task:get_from_ip()