From: Remi Gacogne Date: Wed, 21 Aug 2024 08:51:27 +0000 (+0200) Subject: dnsdist: Create the default pool early, before parsing the configuration X-Git-Tag: rec-5.2.0-alpha1~134^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F14575%2Fhead;p=thirdparty%2Fpdns.git dnsdist: Create the default pool early, before parsing the configuration --- diff --git a/pdns/dnsdistdist/dnsdist.cc b/pdns/dnsdistdist/dnsdist.cc index 4186ac7875..c94beadc2c 100644 --- a/pdns/dnsdistdist/dnsdist.cc +++ b/pdns/dnsdistdist/dnsdist.cc @@ -3349,6 +3349,9 @@ int main(int argc, char** argv) dnsdist::g_asyncHolder = std::make_unique(); + /* 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();