relay: give +2 karma boost to relay IPs

This commit is contained in:
Matt Simerson 2013-03-23 02:06:57 -04:00
parent c17ebdbcf9
commit 1e88a57f26

View File

@ -241,6 +241,7 @@ sub hook_connect {
# 95586 (connect) relay: pass, octet match in relayclients (127.0.0.)
if ( $self->is_in_cidr_block() || $self->is_octet_match() ) {
$self->adjust_karma( 2 ); # big karma boost!
$self->qp->connection->relay_client(1);
return (DECLINED);
};