From: Otto Moerbeek Date: Mon, 24 Jun 2024 09:32:00 +0000 (+0200) Subject: Also use variable suffix for file when reloading YAML-Lua config X-Git-Tag: rec-5.2.0-alpha0^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F14374%2Fhead;p=thirdparty%2Fpdns.git Also use variable suffix for file when reloading YAML-Lua config --- diff --git a/pdns/recursordist/rec_channel_rec.cc b/pdns/recursordist/rec_channel_rec.cc index 6637bd93ee..a2b040cb33 100644 --- a/pdns/recursordist/rec_channel_rec.cc +++ b/pdns/recursordist/rec_channel_rec.cc @@ -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"}; }