relay: give +2 karma boost to relay IPs
This commit is contained in:
parent
c17ebdbcf9
commit
1e88a57f26
@ -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);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user