From: Aki Tuomi Date: Fri, 15 Mar 2019 19:12:46 +0000 (+0200) Subject: lua-recursor4: Add missing getregisteredname Lua function X-Git-Tag: auth-4.2.0-rc1^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F7589%2Fhead;p=thirdparty%2Fpdns.git lua-recursor4: Add missing getregisteredname Lua function It was drooped in 4b9a4e966257eb08d4803633f5726b5a144a8e99 and forgotten in a3e7b73528a96a3642adb42dc1e729ea2e8765f4 --- diff --git a/pdns/lua-recursor4.cc b/pdns/lua-recursor4.cc index 6fff55befe..80a727a376 100644 --- a/pdns/lua-recursor4.cc +++ b/pdns/lua-recursor4.cc @@ -463,6 +463,10 @@ void RecursorLua4::postPrepareContext() g_snmpAgent->sendCustomTrap(str); } }); + + d_lw->writeFunction("getregisteredname", [](const DNSName &dname) { + return getRegisteredName(dname); + }); } void RecursorLua4::postLoad() {