]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Don't overwrite DoH frontends with 'setLocal()' 8848/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 20 Feb 2020 15:03:39 +0000 (16:03 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 20 Feb 2020 15:03:39 +0000 (16:03 +0100)
pdns/dnsdist-lua.cc

index 83b76a80c3de8e0c56fa42c15fb733a087f64f87..8ff462b09fa97852dc83e21dfa99a9b283a6dc0a 100644 (file)
@@ -566,7 +566,7 @@ static void setupLuaConfig(bool client, bool configCheck)
        ComboAddress loc(addr, 53);
         for (auto it = g_frontends.begin(); it != g_frontends.end(); ) {
           /* DoH, DoT and DNSCrypt frontends are separate */
-          if ((*it)->tlsFrontend == nullptr && (*it)->dnscryptCtx == nullptr) {
+          if ((*it)->tlsFrontend == nullptr && (*it)->dnscryptCtx == nullptr && (*it)->dohFrontend == nullptr) {
             it = g_frontends.erase(it);
           }
           else {