From 8c5a204f90febbf2a16a1b6f30ba6ead126216ff Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Tue, 30 Jul 2019 08:38:42 +0200 Subject: [PATCH] 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. --- pdns/lua-base4.cc | 1 + 1 file changed, 1 insertion(+) 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(); }); -- 2.40.0