From: Remi Gacogne Date: Thu, 10 Jul 2025 08:53:19 +0000 (+0200) Subject: dnsdist: Properly process the YAML source parameter for backends X-Git-Tag: rec-5.4.0-alpha0~45^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F15815%2Fhead;p=thirdparty%2Fpdns.git dnsdist: Properly process the YAML source parameter for backends Signed-off-by: Remi Gacogne --- diff --git a/pdns/dnsdistdist/dnsdist-configuration-yaml.cc b/pdns/dnsdistdist/dnsdist-configuration-yaml.cc index 53a72c27d1..5c9b59ad91 100644 --- a/pdns/dnsdistdist/dnsdist-configuration-yaml.cc +++ b/pdns/dnsdistdist/dnsdist-configuration-yaml.cc @@ -503,6 +503,9 @@ static std::shared_ptr createBackendFromConfiguration(const dns } backendConfig.remote = ComboAddress(std::string(config.address), serverPort); + if (!config.source.empty()) { + DownstreamState::parseSourceParameter(std::string(config.source), backendConfig); + } if (protocol == "dot" || protocol == "doh") { tlsCtx = getTLSContext(backendConfig.d_tlsParams);