aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_http.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/lua_http.c')
-rw-r--r--src/lua/lua_http.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/lua_http.c b/src/lua/lua_http.c
index 15fe08e81..3f30e1f3a 100644
--- a/src/lua/lua_http.c
+++ b/src/lua/lua_http.c
@@ -306,7 +306,7 @@ lua_http_dns_callback (struct rdns_reply *reply, gpointer arg)
struct in_addr ina;
struct timeval tv;
- if (reply->code != DNS_RC_NOERROR) {
+ if (reply->code != RDNS_RC_NOERROR) {
lua_http_push_error (450, ud);
return;
}
@@ -404,7 +404,7 @@ lua_http_make_request_common (lua_State *L, struct worker_task *task, const gcha
/* Resolve hostname */
if (make_dns_request (task->resolver, task->s, task->task_pool, lua_http_dns_callback, ud,
- DNS_REQUEST_A, hostname)) {
+ RDNS_REQUEST_A, hostname)) {
task->dns_requests ++;
}