From f8d85d5bdec7199267d24b4d13ed78c5a65f8de1 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Wed, 20 Jan 2016 18:09:18 +0100 Subject: [PATCH] dnsdist: Fix exceedServFails() case. Add exceedQRate to completion Rename exceedServfails() to exceedServFails() to be consistent. Closes #3273. --- pdns/dnsdist-console.cc | 3 ++- pdns/dnsdist-lua2.cc | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pdns/dnsdist-console.cc b/pdns/dnsdist-console.cc index 51b24a5cb..3838b7478 100644 --- a/pdns/dnsdist-console.cc +++ b/pdns/dnsdist-console.cc @@ -192,7 +192,8 @@ char* my_generator(const char* text, int state) "carbonServer(", "controlSocket(", "clearDynBlocks()", "DelayAction(", "delta()", "DisableValidationAction(", "DropAction(", "dumpStats()", - "exceedNXDOMAINs(", "exceedQTypeRate(", "exceedRespByterate(", "exceedServFails(", + "exceedNXDOMAINs(", "exceedQRate(", "exceedQTypeRate(", "exceedRespByterate(", + "exceedServFails(", "firstAvailable", "fixupCase(", "generateDNSCryptCertificate(", "generateDNSCryptProviderKeys(", "getPoolServers(", "getResponseRing(", "getServer(", "getServers()", "grepq(", diff --git a/pdns/dnsdist-lua2.cc b/pdns/dnsdist-lua2.cc index 0cf7095f7..0172032cc 100644 --- a/pdns/dnsdist-lua2.cc +++ b/pdns/dnsdist-lua2.cc @@ -184,7 +184,7 @@ void moreLua() g_lua.registerFunction("match", [](nmts_t& s, const ComboAddress& ca) { return s.match(ca); }); - g_lua.writeFunction("exceedServfails", [](unsigned int rate, int seconds) { + g_lua.writeFunction("exceedServFails", [](unsigned int rate, int seconds) { setLuaNoSideEffect(); return exceedRCode(rate, seconds, RCode::ServFail); }); -- 2.40.0