DNSFilterEngine::Policy DNSFilterEngine::getProcessingPolicy(const DNSName& qname) const
{
// cout<<"Got question for nameserver name "<<qname<<endl;
- Policy pol{PolicyKind::NoAction};
+ Policy pol{PolicyKind::NoAction, nullptr, 0};
for(const auto& z : d_zones) {
if(findNamedPolicy(z.propolName, qname, pol)) {
// cerr<<"Had a hit on the nameserver ("<<qname<<") used to process the query"<<endl;
{
// cout<<"Got question for "<<qname<<" from "<<ca.toString()<<endl;
- Policy pol{PolicyKind::NoAction};
+ Policy pol{PolicyKind::NoAction, nullptr, 0};
for(const auto& z : d_zones) {
if(findNamedPolicy(z.qpolName, qname, pol)) {
// cerr<<"Had a hit on the name of the query"<<endl;
return fnd->second;
}
}
- return Policy{PolicyKind::NoAction};
+ return Policy{PolicyKind::NoAction, nullptr, 0};
}
void DNSFilterEngine::assureZones(int zone)