From: Aki Tuomi Date: Fri, 15 Mar 2019 19:12:46 +0000 (+0200) Subject: lua-recursor4: Add missing getregisteredname Lua function X-Git-Tag: rec-4.1.14^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F7912%2Fhead;p=thirdparty%2Fpdns.git lua-recursor4: Add missing getregisteredname Lua function It was drooped in 4b9a4e966257eb08d4803633f5726b5a144a8e99 and forgotten in a3e7b73528a96a3642adb42dc1e729ea2e8765f4 (cherry picked from commit c2d0a26fecf13a40fa5a74a4cc13d9faef8b1669) --- diff --git a/pdns/lua-recursor4.cc b/pdns/lua-recursor4.cc index 7bdc53643b..5c4ef64109 100644 --- a/pdns/lua-recursor4.cc +++ b/pdns/lua-recursor4.cc @@ -544,6 +544,10 @@ RecursorLua4::RecursorLua4(const std::string& fname) g_snmpAgent->sendCustomTrap(str); } }); + + d_lw->writeFunction("getregisteredname", [](const DNSName &dname) { + return getRegisteredName(dname); + }); ifstream ifs(fname); if(!ifs) {