diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 21:14:48 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 21:14:48 +0000 |
commit | e10ff189aca57bba91933088195d4edda199cb20 (patch) | |
tree | 056237559582eba27e68fa864434436ac5b7f535 /dnsdist-protocols.hh | |
parent | Adding upstream version 1.8.3. (diff) | |
download | dnsdist-e10ff189aca57bba91933088195d4edda199cb20.tar.xz dnsdist-e10ff189aca57bba91933088195d4edda199cb20.zip |
Adding upstream version 1.9.3.upstream/1.9.3
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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; }; |