From: Miod Vallat Date: Fri, 15 May 2026 05:36:17 +0000 (+0200) Subject: Declare lua-global-include-dir setting, for the sake of the Lua2 backend. X-Git-Tag: auth-5.1.0~45^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=26f5e97005f2f61e5c4259ffdf41bb5960df1c95;p=thirdparty%2Fpdns.git Declare lua-global-include-dir setting, for the sake of the Lua2 backend. Fixes #17364 Signed-off-by: Miod Vallat --- diff --git a/pdns/pdnsutil.cc b/pdns/pdnsutil.cc index 801f660e21..f18293f2c0 100644 --- a/pdns/pdnsutil.cc +++ b/pdns/pdnsutil.cc @@ -700,6 +700,8 @@ static void loadMainConfig(const std::string& configdir) ::arg().set("max-include-depth", "Maximum nested $INCLUDE depth when loading a zone from a file")="20"; ::arg().setSwitch("upgrade-unknown-types","Transparently upgrade known TYPExxx records. Recommended to keep off, except for PowerDNS upgrades until data sources are cleaned up")="no"; ::arg().setSwitch("views", "Enable views (variants) of zones, for backends which support them") = "no"; + // Needed by Lua backend + ::arg().set("lua-global-include-dir", "Include *.lua files from this directory into Lua contexts") = ""; ::arg().laxFile(configname); // FIXME520: remove when branching 5.2