forked from extern/shorewall_code
Fix a tri-value bug
This commit is contained in:
parent
af363888ab
commit
9e921beb49
@ -2022,9 +2022,10 @@ sub default_log_level( $$ ) {
|
||||
#
|
||||
sub check_trivalue( $$ ) {
|
||||
my ( $var, $default) = @_;
|
||||
my $val = lc( $config{$var} || '' );
|
||||
my $val = $config{$var};
|
||||
|
||||
if ( defined $val ) {
|
||||
$val = lc $val;
|
||||
if ( $val eq 'yes' || $val eq 'on' ) {
|
||||
$config{$var} = 'on';
|
||||
} elsif ( $val eq 'no' || $val eq 'off' ) {
|
||||
|
Loading…
Reference in New Issue
Block a user