aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_ip.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-02-25 15:37:38 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-02-25 15:37:38 +0000
commit221a576077cb7ae2b11bb954230bef583d384fc4 (patch)
tree7583ad880c56e67beefb57a60c52956547f4c81d /src/lua/lua_ip.c
parentd8833f06bd6272520a4d6994b54c0df43ca3c6f0 (diff)
downloadrspamd-221a576077cb7ae2b11bb954230bef583d384fc4.tar.gz
rspamd-221a576077cb7ae2b11bb954230bef583d384fc4.zip
[Fix] Multimap: Fix operating with userdata
Diffstat (limited to 'src/lua/lua_ip.c')
-rw-r--r--src/lua/lua_ip.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lua/lua_ip.c b/src/lua/lua_ip.c
index 800c9765c..5ee4a39b4 100644
--- a/src/lua/lua_ip.c
+++ b/src/lua/lua_ip.c
@@ -176,6 +176,9 @@ static const struct luaL_reg iplib_m[] = {
LUA_INTERFACE_DEF (ip, apply_mask),
LUA_INTERFACE_DEF (ip, copy),
LUA_INTERFACE_DEF (ip, is_local),
+ {"tostring", lua_ip_to_string},
+ {"totable", lua_ip_to_table},
+ {"tonumber", lua_ip_to_number},
{"__tostring", lua_ip_to_string},
{"__eq", lua_ip_equal},
{"__gc", lua_ip_destroy},