}
sendit:;
- if(g_useIncomingECS && dc->d_ecsFound && (!sr.wasVariable() && !variableAnswer)) {
+ if(g_useIncomingECS && dc->d_ecsFound && !sr.wasVariable() && !variableAnswer) {
// cerr<<"Stuffing in a 0 scope because answer is static"<<endl;
EDNSSubnetOpts eo;
eo.source = dc->d_ednssubnet.source;
(receivedQuery, receivedResponse) = sender(query, scopedResponse)
receivedQuery.id = expectedQuery.id
self.checkMessageEDNSWithECS(expectedQuery, receivedQuery)
- print(receivedResponse)
- print(expectedResponse)
self.checkMessageEDNSWithECS(receivedResponse, expectedResponse)
# it should still have been cached, though, so the next query should be a hit