comparison src/context.cpp @ 145:9b9bab1d3c21 stable-5-25

dump effective dnsbl_list with -c switch
author carl
date Sun, 15 Oct 2006 12:41:46 -0700
parents 31ff00ea6bfb
children 7278c9766e26
comparison
equal deleted inserted replaced
144:31ff00ea6bfb 145:9b9bab1d3c21
703 char *n = (*i).first; 703 char *n = (*i).first;
704 DNSBL &d = *(*i).second; 704 DNSBL &d = *(*i).second;
705 printf("%s dnsbl %s %s \"%s\"; \n", indent, n, d.suffix, d.message); 705 printf("%s dnsbl %s %s \"%s\"; \n", indent, n, d.suffix, d.message);
706 } 706 }
707 707
708 if (!dnsbl_list.empty()) { 708 dnsblp_list dl = get_dnsbl_list();
709 if (!dl.empty()) {
709 printf("%s dnsbl_list", indent); 710 printf("%s dnsbl_list", indent);
710 for (dnsblp_list::iterator i=dnsbl_list.begin(); i!=dnsbl_list.end(); i++) { 711 for (dnsblp_list::iterator i=dl.begin(); i!=dl.end(); i++) {
711 DNSBL &d = *(*i); 712 DNSBL &d = *(*i);
712 printf(" %s", d.name); 713 printf(" %s", d.name);
713 } 714 }
714 printf("; \n"); 715 printf("; \n");
715 } 716 }