mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-29 19:13:39 +01:00
Remove cruft from two actions.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
f6faef7cd0
commit
3757607356
@ -40,10 +40,6 @@ use Shorewall::Rules;
|
|||||||
|
|
||||||
my ( $action ) = get_action_params( 1 );
|
my ( $action ) = get_action_params( 1 );
|
||||||
|
|
||||||
my ( $level, $tag ) = get_action_logging;
|
|
||||||
|
|
||||||
$action = join( ':', $action, $level, $tag ) if "${level}${tag}";
|
|
||||||
|
|
||||||
if ( my $check = check_state( 'NEW' ) ) {
|
if ( my $check = check_state( 'NEW' ) ) {
|
||||||
perl_action_helper( $action, $check == 1 ? "$globals{STATEMATCH} NEW" : '' );
|
perl_action_helper( $action, $check == 1 ? "$globals{STATEMATCH} NEW" : '' );
|
||||||
}
|
}
|
||||||
|
@ -40,16 +40,10 @@ use Shorewall::Rules;
|
|||||||
|
|
||||||
my ( $action ) = get_action_params( 1 );
|
my ( $action ) = get_action_params( 1 );
|
||||||
|
|
||||||
my ( $level, $tag ) = get_action_logging;
|
|
||||||
|
|
||||||
$action = join( ':', $action, $level, $tag ) if "${level}${tag}";
|
|
||||||
|
|
||||||
if ( my $check = check_state( 'UNTRACKED' ) ) {
|
if ( my $check = check_state( 'UNTRACKED' ) ) {
|
||||||
perl_action_helper( $action, $check == 1 ? "$globals{STATEMATCH} UNTRACKED" : '' );
|
perl_action_helper( $action, $check == 1 ? "$globals{STATEMATCH} UNTRACKED" : '' );
|
||||||
}
|
}
|
||||||
|
|
||||||
allow_optimize( get_action_chain );
|
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
|
||||||
?END PERL;
|
?END PERL;
|
||||||
|
Loading…
Reference in New Issue
Block a user