From: Remi Gacogne Date: Tue, 26 Nov 2024 13:17:05 +0000 (+0100) Subject: dnsdist: Fix another clang-tidy warning X-Git-Tag: dnsdist-1.9.8~4^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F14877%2Fhead;p=thirdparty%2Fpdns.git dnsdist: Fix another clang-tidy warning --- diff --git a/pdns/dnsdist-lua.cc b/pdns/dnsdist-lua.cc index 48598b370e..f93d144ff3 100644 --- a/pdns/dnsdist-lua.cc +++ b/pdns/dnsdist-lua.cc @@ -3036,7 +3036,7 @@ static void setupLuaConfig(LuaContext& luaCtx, bool client, bool configCheck) } }); - luaCtx.registerFunction::*)(boost::variant, LuaArray, LuaArray>> certFiles, boost::variant> keyFiles)>("loadNewCertificatesAndKeys", [](const std::shared_ptr& frontend, boost::variant, LuaArray, LuaArray>> certFiles, boost::variant> keyFiles) { + luaCtx.registerFunction::*)(boost::variant, LuaArray, LuaArray>> certFiles, boost::variant> keyFiles)>("loadNewCertificatesAndKeys", [](const std::shared_ptr& frontend, const boost::variant, LuaArray, LuaArray>>& certFiles, const boost::variant>& keyFiles) { #ifdef HAVE_DNS_OVER_HTTPS if (frontend != nullptr) { if (loadTLSCertificateAndKeys("DOHFrontend::loadNewCertificatesAndKeys", frontend->d_tlsContext.d_tlsConfig.d_certKeyPairs, certFiles, keyFiles)) {