Similar to what is already in place for UDP packets.
dc->setRemote(&conn->d_remote);
if(dc->d_mdp.d_header.qr) {
delete dc;
- L<<Logger::Error<<"Ignoring answer on server socket!"<<endl;
+ L<<Logger::Error<<"Ignoring answer from TCP client "<< conn->d_remote.toString() <<" on server socket!"<<endl;
return;
}
if(dc->d_mdp.d_header.opcode) {
delete dc;
- L<<Logger::Error<<"Ignoring non-query opcode on server socket!"<<endl;
+ L<<Logger::Error<<"Ignoring non-query opcode from TCP client "<< conn->d_remote.toString() <<" on server socket!"<<endl;
return;
}
else {