Add redundancy warning re 'blacklst'

This commit is contained in:
Tom Eastep 2010-09-19 08:03:01 -07:00
parent b3d6ae78ba
commit e06ca34298

View File

@ -456,10 +456,12 @@ sub process_zone( \$ ) {
if ( $zoneref->{options}{in_out}{blacklist} ) {
for ( qw/in out/ ) {
warning_message( "Redundant 'blacklist' in " . uc( $_ ) . '_OPTIONS' ) if $zoneref->{options}{$_}{blacklist};
if ( $zoneref->{options}{$_}{blacklist} ) {
warning_message( "Redundant 'blacklist' in " . uc( $_ ) . '_OPTIONS' );
} else {
$zoneref->{options}{$_}{blacklist} = 1;
}
}
$zoneref->{options}{in}{blacklist} = $zoneref->{options}{out}{blacklist} = 1 ;
}
return $zone;