From: Charles-Henri Bruyand Date: Tue, 21 Nov 2023 22:42:13 +0000 (+0100) Subject: dnsdist: add doh3 protocol X-Git-Tag: dnsdist-1.9.0-alpha4~15^2~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fef780d984f160aea0b630c12736428a20009ca0;p=thirdparty%2Fpdns.git dnsdist: add doh3 protocol --- diff --git a/pdns/dnsdist-protocols.cc b/pdns/dnsdist-protocols.cc index 2347822153..886e7ee420 100644 --- a/pdns/dnsdist-protocols.cc +++ b/pdns/dnsdist-protocols.cc @@ -34,7 +34,8 @@ const std::array Protocol::s_names = "DNSCryptTCP", "DoT", "DoH", - "DoQ"}; + "DoQ", + "DoH3"}; const std::array Protocol::s_prettyNames = { "Do53 UDP", @@ -43,7 +44,8 @@ const std::array 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) { diff --git a/pdns/dnsdist-protocols.hh b/pdns/dnsdist-protocols.hh index 00070a0d21..beb43ed3d7 100644 --- a/pdns/dnsdist-protocols.hh +++ b/pdns/dnsdist-protocols.hh @@ -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 s_names; static const std::array s_prettyNames; };