mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-27 18:13:13 +01:00
A better fix for inline default action with parameters.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
54c43396f0
commit
b349cc0f22
@ -672,9 +672,12 @@ sub policy_rules( $$$$$ ) {
|
||||
if ( $default && $default ne 'none' ) {
|
||||
my ( $action ) = split ':', $default;
|
||||
|
||||
my ( $basicaction, $param ) = get_target_param $action;
|
||||
|
||||
if ( ( $targets{$basicaction} || 0 ) == INLINE ) {
|
||||
if ( ( $targets{$action} || 0 ) == ACTION ) {
|
||||
#
|
||||
# Default action is a regular action -- jump to the action chain
|
||||
#
|
||||
add_ijump $chainref, j => use_policy_action( $default, $chainref->{name} );
|
||||
} else {
|
||||
#
|
||||
# Default action is an inline
|
||||
#
|
||||
@ -702,11 +705,6 @@ sub policy_rules( $$$$$ ) {
|
||||
'-', #Helper
|
||||
0, #Wildcard
|
||||
);
|
||||
} else {
|
||||
#
|
||||
# Default action is a regular action -- jump to the action chain
|
||||
#
|
||||
add_ijump $chainref, j => use_policy_action( $default, $chainref->{name} );
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user