mirror of
https://gitlab.com/shorewall/code.git
synced 2025-02-03 03:19:36 +01:00
Add warning about redundant 'blacklist' option
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
e06ca34298
commit
9ba82bec1f
@ -456,10 +456,10 @@ sub process_zone( \$ ) {
|
|||||||
|
|
||||||
if ( $zoneref->{options}{in_out}{blacklist} ) {
|
if ( $zoneref->{options}{in_out}{blacklist} ) {
|
||||||
for ( qw/in out/ ) {
|
for ( qw/in out/ ) {
|
||||||
if ( $zoneref->{options}{$_}{blacklist} ) {
|
unless ( $zoneref->{options}{$_}{blacklist} ) {
|
||||||
warning_message( "Redundant 'blacklist' in " . uc( $_ ) . '_OPTIONS' );
|
|
||||||
} else {
|
|
||||||
$zoneref->{options}{$_}{blacklist} = 1;
|
$zoneref->{options}{$_}{blacklist} = 1;
|
||||||
|
} else {
|
||||||
|
warning_message( "Redundant 'blacklist' in " . uc( $_ ) . '_OPTIONS' );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user