]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Create the default pool early, before parsing the configuration 14575/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 21 Aug 2024 08:51:27 +0000 (10:51 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 21 Aug 2024 08:51:27 +0000 (10:51 +0200)
pdns/dnsdistdist/dnsdist.cc

index 4186ac787575227b9535924f5a5f1da7d71d8dbc..c94beadc2c2b844b147d6552ba0d6bb37e3dd464 100644 (file)
@@ -3349,6 +3349,9 @@ int main(int argc, char** argv)
 
     dnsdist::g_asyncHolder = std::make_unique<dnsdist::AsynchronousHolder>();
 
+    /* create the default pool no matter what */
+    createPoolIfNotExists("");
+
     setupLua(*(g_lua.lock()), false, false, cmdLine.config);
 
     setupPools();
@@ -3455,9 +3458,6 @@ int main(int argc, char** argv)
       webServerThread.detach();
     }
 
-    /* create the default pool no matter what */
-    createPoolIfNotExists("");
-
     for (const auto& backend : dnsdist::configuration::getCurrentRuntimeConfiguration().d_backends) {
       if (backend->connected) {
         backend->start();