- Timestamp:
- 05/05/11 17:41:02 (14 years ago)
- Location:
- trunk/dnsbl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dnsbl/DNSBL.pm
r32 r36 12 12 use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS); 13 13 14 $VERSION = 2. 0;14 $VERSION = 2.1; 15 15 @ISA = qw(Exporter); 16 16 @EXPORT_OK = qw( … … 24 24 ## "constants" 25 25 26 # 8 bits available 27 # 128 is per-IP shitlist 28 # 2 is IP hitlist 26 # w00t! somewhere along the line, by accident or intent, SA's 27 # check_dnsbl_sub can now check up to 24 bits of an DNSBL return value! 29 28 # 1 not available so we don't $self->shoot(foot) 30 29 our %bitfields = ( … … 36 35 ip => 2, 37 36 # OOB 38 org => 32, 39 block => 64, 37 org0 => 32, 38 block0 => 64, 39 org1 => 256, 40 org2 => 512, 41 block1 => 1024, 42 block2 => 2048, 40 43 # "I'm a total spamming moron!" - per-IP only! 41 44 slist => 128 … … 394 397 395 398 $bitmask |= $bitfields{$level-1} if $bcount >= $autolist{$masklen}; 396 $bitmask |= $bitfields{ block} if $listme;397 $bitmask |= $bitfields{ org} if $listorg;399 $bitmask |= $bitfields{"block".($level-1)} if $listme; 400 $bitmask |= $bitfields{"org".($level-1)} if $listorg; 398 401 } 399 402 -
trunk/dnsbl/Makefile
r33 r36 12 12 13 13 PKGNAME=dnsbl 14 VERSION=0.2. 014 VERSION=0.2.1 15 15 16 16 all:
Note:
See TracChangeset
for help on using the changeset viewer.