diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-26 06:28:35 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-26 06:28:35 +0000 |
commit | 037d21f508ef664d9592182d7b9b8d6989c28098 (patch) | |
tree | d6e5a84872adb93665f8a7e8831b70981c1c2351 /dnsdist-lua.hh | |
parent | Adding upstream version 1.9.4. (diff) | |
download | dnsdist-037d21f508ef664d9592182d7b9b8d6989c28098.tar.xz dnsdist-037d21f508ef664d9592182d7b9b8d6989c28098.zip |
Adding upstream version 1.9.5.upstream/1.9.5
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dnsdist-lua.hh')
-rw-r--r-- | dnsdist-lua.hh | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/dnsdist-lua.hh b/dnsdist-lua.hh index 5c35c3f..fed468c 100644 --- a/dnsdist-lua.hh +++ b/dnsdist-lua.hh @@ -23,18 +23,10 @@ #include "dolog.hh" #include "dnsdist.hh" +#include "dnsdist-dnsparser.hh" #include "dnsparser.hh" #include <random> -struct ResponseConfig -{ - boost::optional<bool> setAA{boost::none}; - boost::optional<bool> setAD{boost::none}; - boost::optional<bool> setRA{boost::none}; - uint32_t ttl{60}; -}; -void setResponseHeadersFromConfig(dnsheader& dnsheader, const ResponseConfig& config); - class SpoofAction : public DNSAction { public: @@ -84,13 +76,13 @@ public: return ret; } - [[nodiscard]] ResponseConfig& getResponseConfig() + [[nodiscard]] dnsdist::ResponseConfig& getResponseConfig() { return d_responseConfig; } private: - ResponseConfig d_responseConfig; + dnsdist::ResponseConfig d_responseConfig; static thread_local std::default_random_engine t_randomEngine; std::vector<ComboAddress> d_addrs; std::unordered_set<uint16_t> d_types; |