]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
add a dropAction() creator for Lua
authorbert hubert <bert.hubert@netherlabs.nl>
Wed, 2 Sep 2015 09:14:02 +0000 (11:14 +0200)
committerbert hubert <bert.hubert@netherlabs.nl>
Wed, 2 Sep 2015 09:14:02 +0000 (11:14 +0200)
pdns/dnsdist-lua.cc

index 7c458197b363a4e7bc23149802af05de2e7e0f85..35c10982b87c59788686ba8a29081ffdaf191986 100644 (file)
@@ -350,6 +350,11 @@ vector<std::function<void(void)>> setupLua(bool client, const std::string& confi
       return std::shared_ptr<DNSAction>(new NoRecurseAction);
     });
 
+  g_lua.writeFunction("DropAction", []() {
+      return std::shared_ptr<DNSAction>(new DropAction);
+    });
+
+
   g_lua.writeFunction("MaxQPSIPRule", [](unsigned int qps) {
       return std::shared_ptr<DNSRule>(new MaxQPSIPRule(qps));
     });