]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Do not try to auto-upgrade DoT and DoH backends 11695/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 14 Jun 2022 16:07:28 +0000 (18:07 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 14 Jun 2022 16:07:28 +0000 (18:07 +0200)
pdns/dnsdist-lua.cc

index 455497e09ab43d58db29d5f39a15caba9bbb1673..157e34e37aac514c8dab3807b2f507f2006082ac 100644 (file)
@@ -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);
                          }