]> source.dussan.org Git - rspamd.git/commitdiff
Add aliases for task:get_from_ip
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 13 Feb 2016 14:35:56 +0000 (14:35 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 13 Feb 2016 21:41:29 +0000 (21:41 +0000)
- task:get_addr
- task:get_from_addr
- task:get_ip

src/lua/lua_task.c

index 6e644b0da4c04de16ff35cfcf95e77f9387b9755..184be42058e3e7f4d6b838a6c9f051386bae664c 100644 (file)
@@ -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),