]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Unbreak incoming DoH w/ h2o
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 18 Aug 2023 08:47:47 +0000 (10:47 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 7 Sep 2023 08:56:19 +0000 (10:56 +0200)
pdns/dnsdist-lua.cc

index 4dd374f94cc083103ecc227ffc1ad5fe18329152..a3a9bf3bdc8ded1ee7324b0c56b2d10dbecb26a8 100644 (file)
@@ -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<H2ODOHFrontend>();
+      // 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;