Changeset 4
- Timestamp:
- 09/09/09 15:19:09 (15 years ago)
- Location:
- trunk/dnsbl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dnsbl/DNSBL.pm
r3 r4 320 320 } 321 321 322 if ($mode eq 'cidr' || $mode eq 'rbldnsd') {322 if ($mode eq 'cidr') { 323 323 $listhosts->{$container} |= $pdata if $pdata && ($ooborg || $oobblock || ($mycount >= $autolist{$masklen})); 324 324 } else { -
trunk/dnsbl/export-dnsbl
r3 r4 35 35 ($iplist{$_} & 2 ? '$ relayed a reported spam' : 'Netblock listed on one or more criteria')."\n"; 36 36 } 37 } elsif ($mode eq 'rbldnsd') {38 # need extra cmd args39 die "need subgroup spec (iplist, cidrlist) as well\n" if !$ARGV[1];40 if ($ARGV[1] eq 'iplist') {41 foreach (sort ipcmp keys %iplist) {42 print "$_:127.0.0.$iplist{$_}:\$ relayed a reported spam\n" if $iplist{$_} & 2;43 }44 } elsif ($ARGV[1] eq 'cidrlist') {45 foreach (sort ipcmp keys %iplist) {46 print "$_:127.0.0.$iplist{$_}:Netblock listed on one or more criteria\n" if ! ($iplist{$_} & 2);47 }48 }49 # no output if second arg is unknown.50 37 } else { 51 38 foreach (sort ipcmp keys %iplist) {
Note:
See TracChangeset
for help on using the changeset viewer.