From 6befad2d24c8c62de60ffcf43baff8908ad98fcf Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 30 Nov 2019 17:21:25 +0000 Subject: [PATCH] [Minor] Lua_task: Fix set_ip to accept lua_ip userdata --- src/lua/lua_ip.c | 2 ++ 1 file changed, 2 insertions(+) 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} }; -- 2.39.5