]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Also use variable suffix for file when reloading YAML-Lua config 14374/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 24 Jun 2024 09:32:00 +0000 (11:32 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 24 Jun 2024 09:32:00 +0000 (11:32 +0200)
pdns/recursordist/rec_channel_rec.cc

index 6637bd93eec4c1de521f4ac9127167dfd9712d2d..a2b040cb339bd690ad864a808323772525737510 100644 (file)
@@ -2207,7 +2207,7 @@ RecursorControlChannel::Answer luaconfig(bool broadcast)
     bool dummy1{};
     bool dummy2{};
     pdns::rust::settings::rec::Recursorsettings settings;
-    auto yamlstat = pdns::settings::rec::tryReadYAML(configname + ".yml", false, dummy1, dummy2, settings, g_slog);
+    auto yamlstat = pdns::settings::rec::tryReadYAML(configname + g_yamlSettingsSuffix, false, dummy1, dummy2, settings, g_slog);
     if (yamlstat != pdns::settings::rec::YamlSettingsStatus::OK) {
       return {1, "Not reloading dynamic part of YAML configuration\n"};
     }