Allow builtin actions in xxx_DEFAULT settings.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2017-02-05 15:21:57 -08:00
parent e45b96ca20
commit 686ca9d3a3
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10

View File

@ -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, '' );