summaryrefslogtreecommitdiffstats
path: root/src/lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-08-10 21:27:51 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-08-10 21:27:51 +0100
commit9cd729d4cc45833b3e613aa7db1841eda4d9c3e0 (patch)
treea79c247450a2c63252e3fa8d556607a4a0e299cb /src/lua
parent6bcd583a9cc5617eb589400b7d8822e4178cd741 (diff)
downloadrspamd-9cd729d4cc45833b3e613aa7db1841eda4d9c3e0.tar.gz
rspamd-9cd729d4cc45833b3e613aa7db1841eda4d9c3e0.zip
[Fix] Use forced DNS request when calling for lua_http
Diffstat (limited to 'src/lua')
-rw-r--r--src/lua/lua_http.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lua/lua_http.c b/src/lua/lua_http.c
index a63a7e489..1225db138 100644
--- a/src/lua/lua_http.c
+++ b/src/lua/lua_http.c
@@ -400,6 +400,7 @@ lua_http_request (lua_State *L)
msg = rspamd_http_message_from_url (url);
if (msg == NULL) {
+ msg_err ("cannot create HTTP message from url %s", url);
lua_pushboolean (L, FALSE);
return 1;
}
@@ -500,7 +501,7 @@ lua_http_request (lua_State *L)
else {
to_resolve = rspamd_mempool_fstrdup (task->task_pool, msg->host);
- if (!make_dns_request_task (task, lua_http_dns_handler, cbd,
+ if (!make_dns_request_task_forced (task, lua_http_dns_handler, cbd,
RDNS_REQUEST_A, to_resolve)) {
lua_http_maybe_free (cbd);
lua_pushboolean (L, FALSE);