diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-26 06:28:37 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-26 06:28:37 +0000 |
commit | 037d41a914237592dc3e82751b8be3ff06407af0 (patch) | |
tree | f111444510b128085cbd03f7e72bcddcdef8a7e3 /dnsdist-lua.hh | |
parent | Releasing progress-linux version 1.9.4-1~progress7.99u1. (diff) | |
download | dnsdist-037d41a914237592dc3e82751b8be3ff06407af0.tar.xz dnsdist-037d41a914237592dc3e82751b8be3ff06407af0.zip |
Merging upstream version 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; |