Browse Source

[Fix] Use forced DNS request when calling for lua_http

tags/1.3.3
Vsevolod Stakhov 7 years ago
parent
commit
9cd729d4cc
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/lua/lua_http.c

+ 2
- 1
src/lua/lua_http.c View File

@@ -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);

Loading…
Cancel
Save