From: Remi Gacogne Date: Thu, 13 Feb 2020 14:24:42 +0000 (+0100) Subject: rec: Lookup RPZ Client IP rules before qname ones X-Git-Tag: rec-4.3.0-rc2~1^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b98e8e93205007d2afd39dc808f8796b41f22e0;p=thirdparty%2Fpdns.git rec: Lookup RPZ Client IP rules before qname ones (cherry picked from commit a7e329b836f7ccf4e8cd0c99b5e8aa01865a79f1) --- diff --git a/pdns/filterpo.cc b/pdns/filterpo.cc index a653c56258..a858ca7caf 100644 --- a/pdns/filterpo.cc +++ b/pdns/filterpo.cc @@ -248,6 +248,7 @@ DNSFilterEngine::Policy DNSFilterEngine::getQueryPolicy(const DNSName& qname, co ++count; continue; } + if (z->findClientPolicy(ca, pol)) { // cerr<<"Had a hit on the IP address ("<