Add warning about redundant 'blacklist' option

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2010-09-19 08:28:05 -07:00
parent e06ca34298
commit 9ba82bec1f

View File

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