Changeset 6
- Timestamp:
- 09/10/09 17:57:16 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dnsbl/export-dnsbl
r4 r6 30 30 ##fixme - mode should pick actual output, not just export mode 31 31 if ($mode eq 'cidr') { 32 # more or less raw CIDR block-and-IP info 32 # more or less raw CIDR block-and-IP info. rbldnsd format for convenience. 33 33 foreach (sort ipcmp keys %iplist) { 34 34 print "$_:127.0.0.$iplist{$_}:". … … 37 37 } else { 38 38 foreach (sort ipcmp keys %iplist) { 39 #foreach (sort keys %iplist) {40 39 my ($o1,$o2,$o3,$o4) = (/^(\d+)\.([\d*]+)(?:\.([\d*]+)(?:\.([\d*]+))?)?$/); 41 40 print "+".(defined($o4) ? "$o4." : '').(defined($o3) ? "$o3." : '').(defined($o2) ? "$o2." : '').
Note:
See TracChangeset
for help on using the changeset viewer.