From: bert hubert Date: Wed, 2 Sep 2015 09:14:02 +0000 (+0200) Subject: add a dropAction() creator for Lua X-Git-Tag: dnsdist-1.0.0-alpha1~248^2~69 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ae3dfa48b9e84421a87ff42a87cdeac95dfe9a1e;p=thirdparty%2Fpdns.git add a dropAction() creator for Lua --- diff --git a/pdns/dnsdist-lua.cc b/pdns/dnsdist-lua.cc index 7c458197b3..35c10982b8 100644 --- a/pdns/dnsdist-lua.cc +++ b/pdns/dnsdist-lua.cc @@ -350,6 +350,11 @@ vector> setupLua(bool client, const std::string& confi return std::shared_ptr(new NoRecurseAction); }); + g_lua.writeFunction("DropAction", []() { + return std::shared_ptr(new DropAction); + }); + + g_lua.writeFunction("MaxQPSIPRule", [](unsigned int qps) { return std::shared_ptr(new MaxQPSIPRule(qps)); });