helo: stop processing after first match
This commit is contained in:
parent
7e888cf380
commit
8e437ec305
@ -411,6 +411,7 @@ sub no_forward_dns {
|
|||||||
next unless $rr->type =~ /^(?:A|AAAA)$/;
|
next unless $rr->type =~ /^(?:A|AAAA)$/;
|
||||||
$self->check_ip_match( $rr->address );
|
$self->check_ip_match( $rr->address );
|
||||||
$hits++;
|
$hits++;
|
||||||
|
last if $self->connection->notes('helo_forward_match');
|
||||||
}
|
}
|
||||||
if ( $hits ) {
|
if ( $hits ) {
|
||||||
$self->log(LOGDEBUG, "pass, forward DNS") if $hits;
|
$self->log(LOGDEBUG, "pass, forward DNS") if $hits;
|
||||||
|
Loading…
Reference in New Issue
Block a user