comparison src/dnsbl.cpp @ 14:443aa0e8c6fa

changes suggested by Nigel Horne
author carl
date Mon, 26 Apr 2004 09:28:30 -0700
parents 2752e512fd32
children 2ae8d953f1d0
comparison
equal deleted inserted replaced
13:2752e512fd32 14:443aa0e8c6fa
448 int count = 0; 448 int count = 0;
449 for (string_set::iterator i=priv.hosts.begin(); i!=priv.hosts.end(); i++) { 449 for (string_set::iterator i=priv.hosts.begin(); i!=priv.hosts.end(); i++) {
450 count++; 450 count++;
451 if (count > 20) return oksofar; // silly to check too many hosts 451 if (count > 20) return oksofar; // silly to check too many hosts
452 url = *i; 452 url = *i;
453 char buf[200]; 453 // char buf[200];
454 snprintf(buf, sizeof(buf), "looking for url %s", url); 454 // snprintf(buf, sizeof(buf), "looking for url %s", url);
455 my_syslog(buf); 455 // my_syslog(buf);
456 ip = protected_dns_interface(url); 456 ip = protected_dns_interface(url);
457 if (ip) { 457 if (ip) {
458 status st = check_single(ip, dc.content_suffix); 458 status st = check_single(ip, dc.content_suffix);
459 if (st == reject) return st; 459 if (st == reject) return st;
460 } 460 }