From: bert hubert Date: Tue, 20 Jan 2015 19:56:24 +0000 (+0100) Subject: make printing of netmasks and netmask groups from lua a bit easier X-Git-Tag: rec-3.7.0-rc1~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=823d69ffe0ade9c43e567f377f8cc7c6f324057e;p=pdns make printing of netmasks and netmask groups from lua a bit easier --- 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},