From: Charles-Henri Bruyand Date: Wed, 16 Aug 2023 14:03:48 +0000 (+0200) Subject: dnsdist: add DoQ protocol definition X-Git-Tag: rec-5.0.0-alpha2~6^2~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3efa20402c11aa1d6fb230fa857d654a746f1299;p=thirdparty%2Fpdns.git dnsdist: add DoQ protocol definition --- diff --git a/pdns/dnsdist-protocols.cc b/pdns/dnsdist-protocols.cc index aee63f28ee..e113925e06 100644 --- a/pdns/dnsdist-protocols.cc +++ b/pdns/dnsdist-protocols.cc @@ -33,7 +33,8 @@ const std::array Protocol::s_names = "DNSCryptUDP", "DNSCryptTCP", "DoT", - "DoH"}; + "DoH", + "DoQ"}; const std::array Protocol::s_prettyNames = { "Do53 UDP", @@ -41,7 +42,8 @@ const std::array Protocol::s_prettyN "DNSCrypt UDP", "DNSCrypt TCP", "DNS over TLS", - "DNS over HTTPS"}; + "DNS over HTTPS", + "DNS over QUIC"}; Protocol::Protocol(const std::string& s) { diff --git a/pdns/dnsdist-protocols.hh b/pdns/dnsdist-protocols.hh index bd2a4bb8ad..bece300955 100644 --- a/pdns/dnsdist-protocols.hh +++ b/pdns/dnsdist-protocols.hh @@ -37,7 +37,8 @@ public: DNSCryptUDP, DNSCryptTCP, DoT, - DoH + DoH, + DoQ }; Protocol(typeenum protocol = DoUDP) : @@ -61,7 +62,7 @@ public: private: typeenum d_protocol; - static constexpr size_t s_numberOfProtocols = 6; + static constexpr size_t s_numberOfProtocols = 7; static const std::array s_names; static const std::array s_prettyNames; };