diff --git a/Shorewall/Perl/Shorewall/Rules.pm b/Shorewall/Perl/Shorewall/Rules.pm index bdc25e4a8..2d3efabf4 100644 --- a/Shorewall/Perl/Shorewall/Rules.pm +++ b/Shorewall/Perl/Shorewall/Rules.pm @@ -551,7 +551,7 @@ sub process_default_action( $$$$ ) { } $default = 'none'; - } elsif ( ( $targets{$def} || 0 ) == ACTION ) { + } elsif ( ( $targets{$def} || 0 ) & ACTION ) { $default = supplied $param ? normalize_action( $def, $level, $param ) : $level eq 'none' ? normalize_action_name $def : normalize_action( $def, $level, '' );