summaryrefslogtreecommitdiff
path: root/include/modules
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2015-04-21 15:24:10 +0200
committerAttila Molnar <attilamolnar@hush.com>2015-04-21 15:24:10 +0200
commitedfe7f035ea83731b9316d40d64402411a531426 (patch)
treef37a9e5a24ade86d34e5f29c4516a5a30dabd0d2 /include/modules
parent92959a48b05aa982d5b1331622cb28197d38e9da (diff)
core_dns Remove incomplete support for multiple questions per query
Diffstat (limited to 'include/modules')
-rw-r--r--include/modules/dns.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/modules/dns.h b/include/modules/dns.h
index f4071e399..4da31b805 100644
--- a/include/modules/dns.h
+++ b/include/modules/dns.h
@@ -114,13 +114,13 @@ namespace DNS
struct Query
{
- std::vector<Question> questions;
+ Question question;
std::vector<ResourceRecord> answers;
Error error;
bool cached;
Query() : error(ERROR_NONE), cached(false) { }
- Query(const Question& question) : error(ERROR_NONE), cached(false) { questions.push_back(question); }
+ Query(const Question& q) : question(q), error(ERROR_NONE), cached(false) { }
};
class ReplySocket;