diff src/dnsbl.cpp @ 467:f5b394bec28c

allow checking names without A records on uribl lists; improve extraction of fake TLDs from our RPZ zone
author Carl Byington <carl@five-ten-sg.com>
date Wed, 16 Dec 2020 10:25:37 -0800
parents 79e944269c0b
children 5209e92b4885
line wrap: on
line diff
--- a/src/dnsbl.cpp	Thu Apr 25 09:47:36 2019 -0700
+++ b/src/dnsbl.cpp	Wed Dec 16 10:25:37 2020 -0800
@@ -1148,14 +1148,14 @@
                     msg = priv.content_message;
                     return true;
                 }
+            }
+        }
                 // Check uribl & surbl style list
                 if (priv.uribl_suffix && check_uribl(priv, hosts, host, found)) {
                     msg = priv.uribl_message;
                     return true;
                 }
             }
-        }
-    }
     limit *= 4;   // allow average of 3 ns per host name
     for (ns_mapper::iterator i=nameservers.ns_ip.begin(); i!=nameservers.ns_ip.end(); i++) {
         count++;