]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Apply the new ECS/zero-scope YAML configuration to pools
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 14 Oct 2025 13:31:15 +0000 (15:31 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 14 Oct 2025 13:31:15 +0000 (15:31 +0200)
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
pdns/dnsdistdist/dnsdist-configuration-yaml.cc

index 013854e43027bd95d3bb520422d380105e45f720..e95a4454a7e038e60ccae48e4c79c8413710dc7f 100644 (file)
@@ -1227,6 +1227,8 @@ bool loadConfigurationFromFile(const std::string& fileName, [[maybe_unused]] boo
         if (!pool.policy.empty()) {
           poolIt->second.policy = getRegisteredTypeByName<ServerPolicy>(pool.policy);
         }
+        poolIt->second.setECS(pool.use_ecs);
+        poolIt->second.setZeroScope(pool.use_zero_scope);
       });
     }