fix previous commit

pull/274/head
Jeff Becker 5 years ago
parent b6c5b413b1
commit 0bbd1ecbe4
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -247,7 +247,7 @@ namespace llarp
{ {
if(questions.size()) if(questions.size())
{ {
hdr_fields |= flags_QR; hdr_fields |= flags_QR | flags_AA;
// don't allow recursion // don't allow recursion
hdr_fields &= ~flags_RD; hdr_fields &= ~flags_RD;
// don't advertise recurision // don't advertise recurision
@ -255,7 +255,7 @@ namespace llarp
const auto& question = questions[0]; const auto& question = questions[0];
if(question.qtype != qTypeAAAA) if(question.qtype != qTypeAAAA)
{ {
hdr_fields |= flags_RCODENameError | flags_AA; hdr_fields |= flags_RCODENameError;
answers.emplace_back(); answers.emplace_back();
auto& nx = answers.back(); auto& nx = answers.back();
nx.rr_name = question.qname; nx.rr_name = question.qname;

Loading…
Cancel
Save