From 0cf94587ebb35f4b9d3642596e176bce19b33932 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Fri, 18 Aug 2023 10:47:47 +0200 Subject: [PATCH] dnsdist: Unbreak incoming DoH w/ h2o --- pdns/dnsdist-lua.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pdns/dnsdist-lua.cc b/pdns/dnsdist-lua.cc index 4dd374f94c..a3a9bf3bdc 100644 --- a/pdns/dnsdist-lua.cc +++ b/pdns/dnsdist-lua.cc @@ -2348,6 +2348,8 @@ static void setupLuaConfig(LuaContext& luaCtx, bool client, bool configCheck) if (frontend->d_library == "h2o") { #ifdef HAVE_LIBH2OEVLOOP frontend = std::make_shared(); + // we _really_ need to set it again, as we just replaced the generic frontend by a new one + frontend->d_library = "h2o"; #else /* HAVE_LIBH2OEVLOOP */ errlog("DOH bind %s is configured to use libh2o but the library is not available", addr); return; -- 2.47.2