# HG changeset patch # User carl # Date 1099029274 25200 # Node ID 7bb8bbf792854f075d58207afc5ad541a9c7f620 # Parent 419e009015702dacfe9a6176b9f60569031ee942 changes to handle 5iantlavalamp.com diff -r 419e00901570 -r 7bb8bbf79285 src/dnsbl.cpp --- 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];