From: Remi Gacogne Date: Mon, 7 Feb 2022 14:15:57 +0000 (+0100) Subject: dnsdist: Use dnsdist::ServiceDiscovery::s_defaultDoHSVCKey in newServer X-Git-Tag: rec-4.7.0-alpha1~9^2~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=16a06fd4d269f397e85fe2a907f155d7644f42a0;p=thirdparty%2Fpdns.git dnsdist: Use dnsdist::ServiceDiscovery::s_defaultDoHSVCKey in newServer --- diff --git a/pdns/dnsdist-lua.cc b/pdns/dnsdist-lua.cc index e609699261..e5b92e3303 100644 --- a/pdns/dnsdist-lua.cc +++ b/pdns/dnsdist-lua.cc @@ -603,7 +603,7 @@ static void setupLuaConfig(LuaContext& luaCtx, bool client, bool configCheck) bool autoUpgrade = false; bool keepAfterUpgrade = false; uint32_t upgradeInterval = 3600; - uint16_t upgradeDoHKey = 7; + uint16_t upgradeDoHKey = dnsdist::ServiceDiscovery::s_defaultDoHSVCKey; std::string upgradePool; if (vars.count("autoUpgrade") && boost::get(vars.at("autoUpgrade"))) { diff --git a/pdns/dnsdistdist/dnsdist-discovery.hh b/pdns/dnsdistdist/dnsdist-discovery.hh index d96777b89e..f516a9524c 100644 --- a/pdns/dnsdistdist/dnsdist-discovery.hh +++ b/pdns/dnsdistdist/dnsdist-discovery.hh @@ -50,10 +50,11 @@ public: dnsdist::Protocol d_protocol; }; + static const uint16_t s_defaultDoHSVCKey; + private: static const DNSName s_discoveryDomain; static const QType s_discoveryType; - static const uint16_t s_defaultDoHSVCKey; struct UpgradeableBackend {