From 1d1beded832d20f7a599fc761ce577cfa5b6d460 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 13 Feb 2016 14:35:56 +0000 Subject: [PATCH] Add aliases for task:get_from_ip - task:get_addr - task:get_from_addr - task:get_ip --- src/lua/lua_task.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index 6e644b0da..184be4205 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -560,6 +560,9 @@ static const struct luaL_reg tasklib_m[] = { LUA_INTERFACE_DEF (task, get_from), LUA_INTERFACE_DEF (task, get_user), LUA_INTERFACE_DEF (task, set_user), + {"get_addr", lua_task_get_from_ip}, + {"get_ip", lua_task_get_from_ip}, + {"get_from_addr", lua_task_get_from_ip}, LUA_INTERFACE_DEF (task, get_from_ip), LUA_INTERFACE_DEF (task, set_from_ip), LUA_INTERFACE_DEF (task, get_from_ip_num), -- 2.39.5