]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: add doh3 protocol
authorCharles-Henri Bruyand <charles-henri.bruyand@open-xchange.com>
Tue, 21 Nov 2023 22:42:13 +0000 (23:42 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 8 Dec 2023 07:55:03 +0000 (08:55 +0100)
pdns/dnsdist-protocols.cc
pdns/dnsdist-protocols.hh

index 2347822153e6c5f4ce8bac3e329e9cbab4d110cb..886e7ee42064654bdd5d73545f131d47d4e6420e 100644 (file)
@@ -34,7 +34,8 @@ const std::array<std::string, Protocol::s_numberOfProtocols> Protocol::s_names =
   "DNSCryptTCP",
   "DoT",
   "DoH",
-  "DoQ"};
+  "DoQ",
+  "DoH3"};
 
 const std::array<std::string, Protocol::s_numberOfProtocols> Protocol::s_prettyNames = {
   "Do53 UDP",
@@ -43,7 +44,8 @@ const std::array<std::string, Protocol::s_numberOfProtocols> Protocol::s_prettyN
   "DNSCrypt TCP",
   "DNS over TLS",
   "DNS over HTTPS",
-  "DNS over QUIC"};
+  "DNS over QUIC",
+  "DNS over HTTP/3"};
 
 Protocol::Protocol(const std::string& s)
 {
index 00070a0d2141ad895bd870c909a461777f3a335b..beb43ed3d71d218588432770cf5fd6a55c523098 100644 (file)
@@ -38,7 +38,8 @@ public:
     DNSCryptTCP,
     DoT,
     DoH,
-    DoQ
+    DoQ,
+    DoH3
   };
 
   Protocol(typeenum protocol = DoUDP) :
@@ -63,7 +64,7 @@ public:
 private:
   typeenum d_protocol;
 
-  static constexpr size_t s_numberOfProtocols = 7;
+  static constexpr size_t s_numberOfProtocols = 8;
   static const std::array<std::string, s_numberOfProtocols> s_names;
   static const std::array<std::string, s_numberOfProtocols> s_prettyNames;
 };