for (const auto& wc : wcNames) {
if (z->findExactNSPolicy(wc, pol)) {
// cerr<<"Had a hit on the nameserver ("<<qname<<") used to process the query"<<endl;
- // Hit is not arg to findExactNSPolicy!
+ // Hit is not the wildcard passed to findExactQNamePolicy but the actual qname!
pol.d_hit = qname.toStringNoDot();
return true;
}
continue;
}
- Netmask key;
if(z->findNSIPPolicy(address, pol)) {
// cerr<<"Had a hit on the nameserver ("<<address.toString()<<") used to process the query"<<endl;
return true;
continue;
}
- Netmask key;
if (z->findClientPolicy(ca, pol)) {
// cerr<<"Had a hit on the IP address ("<<ca.toString()<<") of the client"<<endl;
return true;
for (const auto& wc : wcNames) {
if (z->findExactQNamePolicy(wc, pol)) {
// cerr<<"Had a hit on the name of the query"<<endl;
- // Hit is not arg to findExactQNamePolicy!
+ // Hit is not the wildcard passed to findExactQNamePolicy but the actual qname!
pol.d_hit = qname.toStringNoDot();
return true;
}
return false;
}
- Netmask key;
if (z->findResponsePolicy(ca, pol)) {
return true;
}