From 823d69ffe0ade9c43e567f377f8cc7c6f324057e Mon Sep 17 00:00:00 2001 From: bert hubert Date: Tue, 20 Jan 2015 20:56:24 +0100 Subject: [PATCH] make printing of netmasks and netmask groups from lua a bit easier --- pdns/lua-iputils.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pdns/lua-iputils.cc b/pdns/lua-iputils.cc index 980c0aabe..965645902 100644 --- a/pdns/lua-iputils.cc +++ b/pdns/lua-iputils.cc @@ -164,6 +164,7 @@ static int l_netmask_gc(lua_State* L) static const struct luaL_Reg iputils_netmask_methods[]={ {"__tostring", l_netmask_tostring}, + {"tostring", l_netmask_tostring}, {"match", l_netmask_match}, {"__gc", l_netmask_gc}, {NULL, NULL} @@ -214,6 +215,7 @@ static int l_nmgroup_gc(lua_State* L) static const struct luaL_Reg iputils_nmgroup_methods[]={ {"__tostring", l_nmgroup_tostring}, + {"tostring", l_nmgroup_tostring}, {"match", l_nmgroup_match}, {"add", l_nmgroup_add}, {"__gc", l_nmgroup_gc}, -- 2.40.0