]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
lua-recursor4: Add missing getregisteredname Lua function 7912/head
authorAki Tuomi <cmouse@cmouse.fi>
Fri, 15 Mar 2019 19:12:46 +0000 (21:12 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 12 Jun 2019 09:06:00 +0000 (09:06 +0000)
It was drooped in 4b9a4e966257eb08d4803633f5726b5a144a8e99 and
forgotten in a3e7b73528a96a3642adb42dc1e729ea2e8765f4

(cherry picked from commit c2d0a26fecf13a40fa5a74a4cc13d9faef8b1669)

pdns/lua-recursor4.cc

index 7bdc53643b3f9ce23ba458cf6d3d69f144297a69..5c4ef641097897485019aeafc6d886359b7c60a6 100644 (file)
@@ -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) {