]> granicus.if.org Git - pdns/commitdiff
Add `delay` action to dnsdist Lua. Fix None action mapped to Pool.
authorRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 23 Dec 2015 15:03:39 +0000 (16:03 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 23 Dec 2015 15:03:39 +0000 (16:03 +0100)
pdns/dnsdist-lua.cc

index a1902f2e13bdbe70bc492f5f017a56da310792c8..71c27d434a54b139c08cd1c4839158e5bb6ac3ac 100644 (file)
@@ -77,7 +77,8 @@ vector<std::function<void(void)>> setupLua(bool client, const std::string& confi
       {"Allow", (int)DNSAction::Action::Allow}, 
       {"HeaderModify", (int)DNSAction::Action::HeaderModify},
       {"Pool", (int)DNSAction::Action::Pool}, 
-      {"None",(int)DNSAction::Action::Pool}}
+      {"None",(int)DNSAction::Action::None},
+      {"Delay", (int)DNSAction::Action::Delay}}
     );
   
   g_lua.writeFunction("newServer",