Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/dns/dnsdist/files/patch-dnsdist-lua.cc
16462 views
1
--- dnsdist-lua.cc.orig 2025-07-21 09:54:44 UTC
2
+++ dnsdist-lua.cc
3
@@ -2260,6 +2260,7 @@ static void setupLuaConfig(LuaContext& luaCtx, bool cl
4
5
bool ignoreTLSConfigurationErrors = false;
6
if (getOptionalValue<bool>(vars, "ignoreTLSConfigurationErrors", ignoreTLSConfigurationErrors) > 0 && ignoreTLSConfigurationErrors) {
7
+#if defined(HAVE_LIBSSL)
8
// we are asked to try to load the certificates so we can return a potential error
9
// and properly ignore the frontend before actually launching it
10
try {
11
@@ -2269,6 +2270,7 @@ static void setupLuaConfig(LuaContext& luaCtx, bool cl
12
errlog("Ignoring DoH frontend: '%s'", e.what());
13
return;
14
}
15
+#endif /* HAVE_LIBSSL */
16
}
17
18
checkAllParametersConsumed("addDOHLocal", vars);
19
@@ -2357,6 +2359,7 @@ static void setupLuaConfig(LuaContext& luaCtx, bool cl
20
21
bool ignoreTLSConfigurationErrors = false;
22
if (getOptionalValue<bool>(vars, "ignoreTLSConfigurationErrors", ignoreTLSConfigurationErrors) > 0 && ignoreTLSConfigurationErrors) {
23
+#if defined(HAVE_LIBSSL)
24
// we are asked to try to load the certificates so we can return a potential error
25
// and properly ignore the frontend before actually launching it
26
try {
27
@@ -2366,6 +2369,7 @@ static void setupLuaConfig(LuaContext& luaCtx, bool cl
28
errlog("Ignoring DoH3 frontend: '%s'", e.what());
29
return;
30
}
31
+#endif /* HAVE_LIBSSL */
32
}
33
34
checkAllParametersConsumed("addDOH3Local", vars);
35
@@ -2433,6 +2437,7 @@ static void setupLuaConfig(LuaContext& luaCtx, bool cl
36
37
bool ignoreTLSConfigurationErrors = false;
38
if (getOptionalValue<bool>(vars, "ignoreTLSConfigurationErrors", ignoreTLSConfigurationErrors) > 0 && ignoreTLSConfigurationErrors) {
39
+#if defined(HAVE_LIBSSL)
40
// we are asked to try to load the certificates so we can return a potential error
41
// and properly ignore the frontend before actually launching it
42
try {
43
@@ -2442,6 +2447,7 @@ static void setupLuaConfig(LuaContext& luaCtx, bool cl
44
errlog("Ignoring DoQ frontend: '%s'", e.what());
45
return;
46
}
47
+#endif /* HAVE_LIBSSL */
48
}
49
50
checkAllParametersConsumed("addDOQLocal", vars);
51
52