commit 6befad2: [Minor] Lua_task: Fix set_ip to accept lua_ip userdata

Vsevolod Stakhov vsevolod at highsecure.ru
Sat Nov 30 17:28:06 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-11-30 17:21:25 +0000
URL: https://github.com/rspamd/rspamd/commit/6befad2d24c8c62de60ffcf43baff8908ad98fcf

[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}
 };


More information about the Commits mailing list