diff options
Diffstat (limited to 'dnsdist-protocols.hh')
-rw-r--r-- | dnsdist-protocols.hh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/dnsdist-protocols.hh b/dnsdist-protocols.hh index bd2a4bb..beb43ed 100644 --- a/dnsdist-protocols.hh +++ b/dnsdist-protocols.hh @@ -37,7 +37,9 @@ public: DNSCryptUDP, DNSCryptTCP, DoT, - DoH + DoH, + DoQ, + DoH3 }; Protocol(typeenum protocol = DoUDP) : @@ -56,12 +58,13 @@ public: const std::string& toString() const; const std::string& toPrettyString() const; bool isUDP() const; + bool isEncrypted() const; uint8_t toNumber() const; private: typeenum d_protocol; - static constexpr size_t s_numberOfProtocols = 6; + 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; }; |