]> 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 14:35:56 +0000 (14:35 +0000)
- task:get_addr
- task:get_from_addr
- task:get_ip

src/lua/lua_task.c

index 3731b059efbb17d33c7c2b8e224162b97eca7eb9..6c56f22ffb85e08ab8eedbd6528794621df4379a 100644 (file)
@@ -576,6 +576,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),