diff --git a/Shorewall/Perl/Shorewall/Config.pm b/Shorewall/Perl/Shorewall/Config.pm index 91e42ecf5..43f8dbf9f 100644 --- a/Shorewall/Perl/Shorewall/Config.pm +++ b/Shorewall/Perl/Shorewall/Config.pm @@ -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' ) {