diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-02-13 14:35:56 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-02-13 21:41:29 +0000 |
commit | 1d1beded832d20f7a599fc761ce577cfa5b6d460 (patch) | |
tree | 941cbbae54d9117de5051649cde3cb0cda0651ff | |
parent | a23868a7106d4ea15ebb9de5d0074e34be11a03d (diff) | |
download | rspamd-1d1beded832d20f7a599fc761ce577cfa5b6d460.tar.gz rspamd-1d1beded832d20f7a599fc761ce577cfa5b6d460.zip |
Add aliases for task:get_from_ip
- task:get_addr
- task:get_from_addr
- task:get_ip
-rw-r--r-- | src/lua/lua_task.c | 3 |
1 files changed, 3 insertions, 0 deletions
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), |