Mercurial > dnsbl
comparison 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 |
comparison
equal
deleted
inserted
replaced
466:8ad675a5d448 | 467:f5b394bec28c |
---|---|
1146 // check dnsbl style list | 1146 // check dnsbl style list |
1147 if (priv.content_suffix && check_single(priv, ip, priv.content_suffix)) { | 1147 if (priv.content_suffix && check_single(priv, ip, priv.content_suffix)) { |
1148 msg = priv.content_message; | 1148 msg = priv.content_message; |
1149 return true; | 1149 return true; |
1150 } | 1150 } |
1151 // Check uribl & surbl style list | 1151 } |
1152 if (priv.uribl_suffix && check_uribl(priv, hosts, host, found)) { | 1152 } |
1153 msg = priv.uribl_message; | 1153 // Check uribl & surbl style list |
1154 return true; | 1154 if (priv.uribl_suffix && check_uribl(priv, hosts, host, found)) { |
1155 } | 1155 msg = priv.uribl_message; |
1156 } | 1156 return true; |
1157 } | 1157 } |
1158 } | 1158 } |
1159 limit *= 4; // allow average of 3 ns per host name | 1159 limit *= 4; // allow average of 3 ns per host name |
1160 for (ns_mapper::iterator i=nameservers.ns_ip.begin(); i!=nameservers.ns_ip.end(); i++) { | 1160 for (ns_mapper::iterator i=nameservers.ns_ip.begin(); i!=nameservers.ns_ip.end(); i++) { |
1161 count++; | 1161 count++; |