aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-11-30 17:21:25 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-11-30 17:21:25 +0000
commit6befad2d24c8c62de60ffcf43baff8908ad98fcf (patch)
tree19279abc78ef8bdaef0c89563b098ed33819c14b /src
parentad9f078c81a1de0bf54895b38b2b3cfbb568438f (diff)
downloadrspamd-6befad2d24c8c62de60ffcf43baff8908ad98fcf.tar.gz
rspamd-6befad2d24c8c62de60ffcf43baff8908ad98fcf.zip
[Minor] Lua_task: Fix set_ip to accept lua_ip userdata
Diffstat (limited to 'src')
-rw-r--r--src/lua/lua_ip.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lua/lua_ip.c b/src/lua/lua_ip.c
index f873c4515..fb6845519 100644
--- a/src/lua/lua_ip.c
+++ b/src/lua/lua_ip.c
@@ -187,6 +187,8 @@ static const struct luaL_reg iplib_m[] = {
static const struct luaL_reg iplib_f[] = {
LUA_INTERFACE_DEF (ip, from_string),
+ {"fromstring", lua_ip_from_string},
+ {"fromip", lua_ip_copy},
{"from_ip", lua_ip_copy},
{NULL, NULL}
};