Path: blob/main/dns/dnsdist/files/patch-dnsdist-lua.cc
16462 views
--- dnsdist-lua.cc.orig 2025-07-21 09:54:44 UTC1+++ dnsdist-lua.cc2@@ -2260,6 +2260,7 @@ static void setupLuaConfig(LuaContext& luaCtx, bool cl34bool ignoreTLSConfigurationErrors = false;5if (getOptionalValue<bool>(vars, "ignoreTLSConfigurationErrors", ignoreTLSConfigurationErrors) > 0 && ignoreTLSConfigurationErrors) {6+#if defined(HAVE_LIBSSL)7// we are asked to try to load the certificates so we can return a potential error8// and properly ignore the frontend before actually launching it9try {10@@ -2269,6 +2270,7 @@ static void setupLuaConfig(LuaContext& luaCtx, bool cl11errlog("Ignoring DoH frontend: '%s'", e.what());12return;13}14+#endif /* HAVE_LIBSSL */15}1617checkAllParametersConsumed("addDOHLocal", vars);18@@ -2357,6 +2359,7 @@ static void setupLuaConfig(LuaContext& luaCtx, bool cl1920bool ignoreTLSConfigurationErrors = false;21if (getOptionalValue<bool>(vars, "ignoreTLSConfigurationErrors", ignoreTLSConfigurationErrors) > 0 && ignoreTLSConfigurationErrors) {22+#if defined(HAVE_LIBSSL)23// we are asked to try to load the certificates so we can return a potential error24// and properly ignore the frontend before actually launching it25try {26@@ -2366,6 +2369,7 @@ static void setupLuaConfig(LuaContext& luaCtx, bool cl27errlog("Ignoring DoH3 frontend: '%s'", e.what());28return;29}30+#endif /* HAVE_LIBSSL */31}3233checkAllParametersConsumed("addDOH3Local", vars);34@@ -2433,6 +2437,7 @@ static void setupLuaConfig(LuaContext& luaCtx, bool cl3536bool ignoreTLSConfigurationErrors = false;37if (getOptionalValue<bool>(vars, "ignoreTLSConfigurationErrors", ignoreTLSConfigurationErrors) > 0 && ignoreTLSConfigurationErrors) {38+#if defined(HAVE_LIBSSL)39// we are asked to try to load the certificates so we can return a potential error40// and properly ignore the frontend before actually launching it41try {42@@ -2442,6 +2447,7 @@ static void setupLuaConfig(LuaContext& luaCtx, bool cl43errlog("Ignoring DoQ frontend: '%s'", e.what());44return;45}46+#endif /* HAVE_LIBSSL */47}4849checkAllParametersConsumed("addDOQLocal", vars);505152