Mercurial > dnsbl
changeset 58:7bb8bbf79285
changes to handle 5iantlavalamp.com
author | carl |
---|---|
date | Thu, 28 Oct 2004 22:54:34 -0700 |
parents | 419e00901570 |
children | 510a511ad554 |
files | src/dnsbl.cpp |
diffstat | 1 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dnsbl.cpp Thu Oct 28 22:48:52 2004 -0700 +++ b/src/dnsbl.cpp Thu Oct 28 22:54:34 2004 -0700 @@ -609,12 +609,13 @@ int_set ips; // remove duplicate ip addresses for (string_set::iterator i=priv.memory->hosts.begin(); i!=priv.memory->hosts.end(); i++) { host = *i; // a reference into priv.memory->hosts, which will live until this smtp transaction is closed + + // don't bother looking up hosts on the ignore list string_set::iterator j = priv.pc->content_host_ignore.find(host); - if (j == priv.pc->content_host_ignore.end()) { - continue; // don't bother looking up this host - } + if (j != priv.pc->content_host_ignore.end()) continue; + + // try to only look at lim/cnt fraction of the available cnt host names in random mode if ((cnt > lim) && (lim > 0) && ran) { - // try to only look at lim/cnt fraction of the available cnt host names int r = rand() % cnt; if (r >= lim) { char buf[1000];