dnsbl: smite blacklisted IPs with -1 karma
This commit is contained in:
parent
3b71f06682
commit
d427f43f54
@ -191,6 +191,8 @@ sub hook_connect {
|
|||||||
|
|
||||||
next if ! $result;
|
next if ! $result;
|
||||||
|
|
||||||
|
$self->adjust_karma( -1 );
|
||||||
|
|
||||||
if ( ! $dnsbl ) { ($dnsbl) = ($result =~ m/(?:\d+\.){4}(.*)/); };
|
if ( ! $dnsbl ) { ($dnsbl) = ($result =~ m/(?:\d+\.){4}(.*)/); };
|
||||||
if ( ! $dnsbl ) { $dnsbl = $result; };
|
if ( ! $dnsbl ) { $dnsbl = $result; };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user