]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Declare lua-global-include-dir setting, for the sake of the Lua2 backend. 17365/head
authorMiod Vallat <miod.vallat@powerdns.com>
Fri, 15 May 2026 05:36:17 +0000 (07:36 +0200)
committerMiod Vallat <miod.vallat@powerdns.com>
Fri, 15 May 2026 05:36:17 +0000 (07:36 +0200)
Fixes #17364

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
pdns/pdnsutil.cc

index 801f660e21375987cf814231d650f4f612d9b273..f18293f2c0929cc12079d5865e7fdb9f567188a0 100644 (file)
@@ -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