summaryrefslogtreecommitdiff
path: root/include/modules
diff options
context:
space:
mode:
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;