Move recursion bit logic into the fwd lookup

MS-2855/keylogger-mettle-extension
RageLtMan 2016-02-24 13:31:11 -05:00
parent 136cc964f5
commit a8c3adf19c
1 changed files with 1 additions and 1 deletions

View File

@ -245,6 +245,7 @@ class Server
forwarded.answer.each do |ans|
@cache.cache_record(ans)
end
req.header.ra = 1 # Set recursion bit
end
# Finalize answers in response
# Check for empty response prior to sending
@ -252,7 +253,6 @@ class Server
req.header.rCode = Net::DNS::Header::RCode.new(3)
end
req.header.qr = 1 # Set response bit
req.header.ra = 1 # Set recursion bit
send_response(cli, validate_packet(req).data)
end
end