From: bert hubert Date: Thu, 5 Mar 2015 09:10:09 +0000 (+0100) Subject: remove some lua functions, fix up names of others X-Git-Tag: dnsdist-1.0.0-alpha1~248^2~88^2~94 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0976f44dbb4ad42d4f994090909bb00e9d767ab;p=thirdparty%2Fpdns.git remove some lua functions, fix up names of others --- diff --git a/pdns/dnsdist-lua.cc b/pdns/dnsdist-lua.cc index ce8cdb373a..d2220ece4d 100644 --- a/pdns/dnsdist-lua.cc +++ b/pdns/dnsdist-lua.cc @@ -248,7 +248,6 @@ void setupLua(bool client) g_lua.writeFunction("getServer", [](int i) { return g_dstates[i]; }); - g_lua.registerFunction("checkQPS", [](DownstreamState& s) { return s.qps.check(); }); g_lua.registerFunction("setQPS", [](DownstreamState& s, int lim) { s.qps = lim ? QPSLimiter(lim, lim) : QPSLimiter(); }); g_lua.registerFunction("addPool", [](DownstreamState& s, string pool) { s.pools.insert(pool);}); g_lua.registerFunction("rmPool", [](DownstreamState& s, string pool) { s.pools.erase(pool);}); @@ -260,7 +259,7 @@ void setupLua(bool client) g_lua.registerFunction("setDown", &DownstreamState::setDown); g_lua.registerFunction("setUp", &DownstreamState::setUp); g_lua.registerFunction("setAuto", &DownstreamState::setAuto); - g_lua.registerMember("upstatus", &DownstreamState::upStatus); + g_lua.registerMember("upStatus", &DownstreamState::upStatus); g_lua.registerMember("weight", &DownstreamState::weight); g_lua.registerMember("order", &DownstreamState::order); @@ -297,7 +296,7 @@ void setupLua(bool client) g_lua.registerFunction("isPartOf", &DNSName::isPartOf); g_lua.registerFunction("tostring", &DNSName::toString); g_lua.writeFunction("newDNSName", [](const std::string& name) { return DNSName(name); }); - g_lua.writeFunction("newSuffixNode", []() { return SuffixMatchNode(); }); + g_lua.writeFunction("newSuffixMatchNode", []() { return SuffixMatchNode(); }); g_lua.registerFunction("add",(void (SuffixMatchNode::*)(const DNSName&)) &SuffixMatchNode::add); g_lua.registerFunction("check",(bool (SuffixMatchNode::*)(const DNSName&) const) &SuffixMatchNode::check);