From 686ca9d3a38f63930a7bc2b08089f6be8c6691c1 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Sun, 5 Feb 2017 15:21:57 -0800 Subject: [PATCH] Allow builtin actions in xxx_DEFAULT settings. Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Rules.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, '' );