relay: give +2 karma boost to relay IPs
This commit is contained in:
parent
aaa2241cb8
commit
309fdbe4b4
@ -241,6 +241,7 @@ sub hook_connect {
|
|||||||
# 95586 (connect) relay: pass, octet match in relayclients (127.0.0.)
|
# 95586 (connect) relay: pass, octet match in relayclients (127.0.0.)
|
||||||
|
|
||||||
if ( $self->is_in_cidr_block() || $self->is_octet_match() ) {
|
if ( $self->is_in_cidr_block() || $self->is_octet_match() ) {
|
||||||
|
$self->adjust_karma( 2 ); # big karma boost!
|
||||||
$self->qp->connection->relay_client(1);
|
$self->qp->connection->relay_client(1);
|
||||||
return (DECLINED);
|
return (DECLINED);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user