Changeset 34 for trunk


Ignore:
Timestamp:
03/30/11 12:54:44 (14 years ago)
Author:
Kris Deugau
Message:

/trunk/dnsbl

Tweak to allow indicating the block in the TXT record

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dnsbl/export-dnsbl

    r32 r34  
    6060  # more or less raw CIDR block-and-IP info.  rbldnsd format for convenience.
    6161  foreach (sort ipcmp keys %iplist) {
    62     print "$_:127.0.0.$iplist{$_}:".
    63         ($iplist{$_} & 2 ? 
     62    my $out = "$_:127.0.0.$iplist{$_}:".
     63        ($iplist{$_} & 2 ?
    6464                ($config{iplisted} ? $config{iplisted} : '$ relayed a reported spam') :
    6565                ($config{blocklisted} ? $config{blocklisted} : 'Netblock listed on one or more criteria')
    6666        )."\n";
     67    $out =~ s/:ENTITY:/$_/;
     68    print $out;
    6769  }
    6870} else {
Note: See TracChangeset for help on using the changeset viewer.