From e27097e42d801594a834cc01c7a74ea54be6cacd Mon Sep 17 00:00:00 2001 From: bert hubert Date: Sun, 13 Dec 2015 11:21:38 +0100 Subject: [PATCH] add PoolAction() to Lua --- pdns/dnsdist-lua.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pdns/dnsdist-lua.cc b/pdns/dnsdist-lua.cc index b5e0a2691..5e78e8132 100644 --- a/pdns/dnsdist-lua.cc +++ b/pdns/dnsdist-lua.cc @@ -407,6 +407,10 @@ vector> setupLua(bool client, const std::string& confi return std::shared_ptr(new NoRecurseAction); }); + g_lua.writeFunction("PoolAction", [](const string& a) { + return std::shared_ptr(new PoolAction(a)); + }); + g_lua.writeFunction("SpoofAction", [](const string& a, boost::optional b) { if(b) return std::shared_ptr(new SpoofAction(ComboAddress(a), ComboAddress(*b))); -- 2.40.0