copy in rd bit

This commit is contained in:
bert hubert
2018-04-13 17:48:32 +02:00
parent 02b0ad2846
commit 4685e53f78

View File

@ -53,7 +53,7 @@ bool processQuestion(const DNSNode& zones, DNSMessageReader& dm, const ComboAddr
cout<<"Received a query from "<<remote.toStringWithPort()<<" for "<<qname<<" and type "<<qtype<<endl; cout<<"Received a query from "<<remote.toStringWithPort()<<" for "<<qname<<" and type "<<qtype<<endl;
try { try {
response.dh.id = dm.dh.id; response.dh.id = dm.dh.id; response.dh.rd = dm.dh.rd;
response.dh.ad = response.dh.ra = response.dh.aa = 0; response.dh.ad = response.dh.ra = response.dh.aa = 0;
response.dh.qr = 1; response.dh.qr = 1;
uint16_t newsize; bool doBit; uint16_t newsize; bool doBit;