From: Remi Gacogne Date: Tue, 30 Jul 2019 06:38:42 +0000 (+0200) Subject: Restore the Lua binding for DNSName::wirelength() X-Git-Tag: dnsdist-1.4.0-rc1~14^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8c5a204f90febbf2a16a1b6f30ba6ead126216ff;p=pdns Restore the Lua binding for DNSName::wirelength() c052aac71b2ff336ca59421a5bee30564ce9562a renamed it to DNSName::wireLength() while documenting the DNSName bindings in the auth, unfortunately breaking compatibility in the recursor. --- diff --git a/pdns/lua-base4.cc b/pdns/lua-base4.cc index 39dbb391c..a91b624b8 100644 --- a/pdns/lua-base4.cc +++ b/pdns/lua-base4.cc @@ -66,6 +66,7 @@ void BaseLua4::prepareContext() { d_lw->registerFunction("getRawLabels", &DNSName::getRawLabels); d_lw->registerFunction("countLabels", [](const DNSName& name) { return name.countLabels(); }); d_lw->registerFunction("wireLength", [](const DNSName& name) { return name.wirelength(); }); + d_lw->registerFunction("wirelength", [](const DNSName& name) { return name.wirelength(); }); d_lw->registerFunction("equal", [](const DNSName& lhs, const std::string& rhs) { return lhs==DNSName(rhs); }); d_lw->registerEqFunction(&DNSName::operator==); d_lw->registerToStringFunction([](const DNSName&dn ) { return dn.toString(); });