Mail-Abuse
view release on metacpan or search on metacpan
lib/Mail/Abuse/Filter/IP.pm view on Meta::CPAN
my $inc = shift;
if (!$self->within and $rep->config->{&WITHIN})
{
# unless (ref $rep->config->{&WITHIN} eq 'ARRAY')
# {
# $rep->config->{&WITHIN} = [ $rep->config->{&WITHIN} ];
# }
$self->within([]);
for my $ip (map { new NetAddr::IP $_ }
split m/[\s,]+/, $rep->config->{&WITHIN})
{
unless ($ip)
{
die "Filter::IP: Please check your '", &WITHIN,
"' clause for errors\n";
}
warn "Filter::IP: Adding $ip to 'within' clause\n"
if $rep->config->{&DEBUG};
push @{$self->within}, $ip;
}
( run in 1.810 second using v1.01-cache-2.11-cpan-71847e10f99 )