From: Remi Gacogne Date: Tue, 14 Jun 2022 16:07:28 +0000 (+0200) Subject: dnsdist: Do not try to auto-upgrade DoT and DoH backends X-Git-Tag: auth-4.8.0-alpha0~49^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F11695%2Fhead;p=thirdparty%2Fpdns.git dnsdist: Do not try to auto-upgrade DoT and DoH backends --- diff --git a/pdns/dnsdist-lua.cc b/pdns/dnsdist-lua.cc index 455497e09a..157e34e37a 100644 --- a/pdns/dnsdist-lua.cc +++ b/pdns/dnsdist-lua.cc @@ -653,7 +653,7 @@ static void setupLuaConfig(LuaContext& luaCtx, bool client, bool configCheck) infolog("Added downstream server %s", ret->d_config.remote.toStringWithPort()); } - if (autoUpgrade) { + if (autoUpgrade && ret->getProtocol() != dnsdist::Protocol::DoT && ret->getProtocol() != dnsdist::Protocol::DoH) { dnsdist::ServiceDiscovery::addUpgradeableServer(ret, upgradeInterval, upgradePool, upgradeDoHKey, keepAfterUpgrade); }