From 9ce6a273a2478c0c83529fc01661b8dbb1fc0abd Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Fri, 29 Jun 2018 15:13:25 +0200 Subject: [PATCH] dnsdist: Fix compilation without DoT support --- pdns/dnsdist-lua.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pdns/dnsdist-lua.cc b/pdns/dnsdist-lua.cc index 0526ae18df..4f52440929 100644 --- a/pdns/dnsdist-lua.cc +++ b/pdns/dnsdist-lua.cc @@ -1615,9 +1615,11 @@ void setupLuaConfig(bool client) }); g_lua.registerFunction::*)(boost::variant>> certFiles, boost::variant>> keyFiles)>("loadNewCertificatesAndKeys", [](std::shared_ptr& frontend, boost::variant>> certFiles, boost::variant>> keyFiles) { +#ifdef HAVE_DNS_OVER_TLS if (loadTLSCertificateAndKeys(frontend, certFiles, keyFiles)) { frontend->setupTLS(); } +#endif }); } -- 2.47.3