also copy in opcode

This commit is contained in:
bert hubert
2018-04-13 17:56:51 +02:00
parent 4685e53f78
commit a79cb8a457

View File

@ -55,7 +55,7 @@ bool processQuestion(const DNSNode& zones, DNSMessageReader& dm, const ComboAddr
try {
response.dh.id = dm.dh.id; response.dh.rd = dm.dh.rd;
response.dh.ad = response.dh.ra = response.dh.aa = 0;
response.dh.qr = 1;
response.dh.qr = 1; response.dh.opcode = dm.dh.opcode;
uint16_t newsize; bool doBit;
if(dm.getEDNS(&newsize, &doBit)) {