From: Vsevolod Stakhov Date: Wed, 10 Aug 2016 20:27:51 +0000 (+0100) Subject: [Fix] Use forced DNS request when calling for lua_http X-Git-Tag: 1.3.3~38 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9cd729d4cc45833b3e613aa7db1841eda4d9c3e0;p=rspamd.git [Fix] Use forced DNS request when calling for lua_http --- 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);