From: Remi Gacogne Date: Wed, 15 Jan 2020 13:38:45 +0000 (+0100) Subject: rec: Export the filtering policy type to Lua X-Git-Tag: auth-4.3.0-beta1~30^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ed25b2151711bd20cf4a512b8102eef74665a65c;p=thirdparty%2Fpdns.git rec: Export the filtering policy type to Lua --- diff --git a/pdns/lua-recursor4.cc b/pdns/lua-recursor4.cc index 74c3b0d287..36239b0e14 100644 --- a/pdns/lua-recursor4.cc +++ b/pdns/lua-recursor4.cc @@ -263,6 +263,7 @@ void RecursorLua4::postPrepareContext() pol.d_name = std::make_shared(name); }); d_lw->registerMember("policyKind", &DNSFilterEngine::Policy::d_kind); + d_lw->registerMember("policyType", &DNSFilterEngine::Policy::d_type); d_lw->registerMember("policyTTL", &DNSFilterEngine::Policy::d_ttl); d_lw->registerMember("policyCustom", [](const DNSFilterEngine::Policy& pol) -> std::string {