From c2d0a26fecf13a40fa5a74a4cc13d9faef8b1669 Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Fri, 15 Mar 2019 21:12:46 +0200 Subject: [PATCH] lua-recursor4: Add missing getregisteredname Lua function It was drooped in 4b9a4e966257eb08d4803633f5726b5a144a8e99 and forgotten in a3e7b73528a96a3642adb42dc1e729ea2e8765f4 --- pdns/lua-recursor4.cc | 4 ++++ 1 file changed, 4 insertions(+) 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() { -- 2.47.2