aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_task.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/lua_task.c')
-rw-r--r--src/lua/lua_task.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c
index de42989da..4ef56b3d4 100644
--- a/src/lua/lua_task.c
+++ b/src/lua/lua_task.c
@@ -993,7 +993,7 @@ lua_task_get_from_ip (lua_State *L)
struct rspamd_task *task = lua_check_task (L);
if (task) {
- lua_ip_push (L, task->from_addr.ipv6 ? AF_INET6 : AF_INET, &task->from_addr.d);
+ lua_ip_push (L, &task->from_addr);
}
else {
lua_pushnil (L);
@@ -1023,7 +1023,7 @@ lua_task_get_client_ip_num (lua_State *L)
struct rspamd_task *task = lua_check_task (L);
if (task) {
- lua_ip_push (L, AF_INET, &task->client_addr);
+ lua_ip_push (L, &task->client_addr);
}
else {
lua_pushnil (L);