]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Lua_task: Fix set_ip to accept lua_ip userdata
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 30 Nov 2019 17:21:25 +0000 (17:21 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 30 Nov 2019 17:21:25 +0000 (17:21 +0000)
src/lua/lua_ip.c

index f873c451527e938c4a08e7a9c0053759f18705b4..fb6845519ed13eda1bddaa4082eca9f54cdba7d1 100644 (file)
@@ -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}
 };