]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Fix DNS over plain HTTP broken by `reloadAllCertificates()` 14070/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 15 Apr 2024 14:58:44 +0000 (16:58 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 15 Apr 2024 14:58:44 +0000 (16:58 +0200)
This was introduced in 1.9.0, with the use of the `nghttp2` library
for incoming DNS over HTTP(S).

pdns/dnsdistdist/dnsdist-doh-common.cc

index 71cd87cd0f2f7a9056789702a11fbbe290c6b4ae..dcbd183d7cefac12590bbe41b1a3e18bc9813e02 100644 (file)
@@ -115,7 +115,9 @@ size_t DOHFrontend::getTicketsKeysCount()
 
 void DOHFrontend::reloadCertificates()
 {
-  d_tlsContext.setupTLS();
+  if (isHTTPS()) {
+    d_tlsContext.setupTLS();
+  }
 }
 
 void DOHFrontend::setup()