From: Charles-Henri Bruyand Date: Tue, 12 Jun 2018 14:50:34 +0000 (+0200) Subject: expose DNSName::getRawLabels X-Git-Tag: auth-4.2.0-alpha1~19^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0be34c8644eee3de3b289dd140e13c0b7af7b780;p=thirdparty%2Fpdns.git expose DNSName::getRawLabels --- diff --git a/pdns/lua-base4.cc b/pdns/lua-base4.cc index 6e8ef5107e..ee596c8eb6 100644 --- a/pdns/lua-base4.cc +++ b/pdns/lua-base4.cc @@ -62,6 +62,7 @@ void BaseLua4::prepareContext() { d_lw->registerFunction("canonCompare", &DNSName::canonCompare); d_lw->registerFunction("makeRelative", &DNSName::makeRelative); d_lw->registerFunction("isPartOf", &DNSName::isPartOf); + 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("equal", [](const DNSName& lhs, const std::string& rhs) { return lhs==DNSName(rhs); });