mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-26 17:43:15 +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 ( $level, $tag ) = get_action_logging;
|
||||
|
||||
$action = join( ':', $action, $level, $tag ) if "${level}${tag}";
|
||||
|
||||
if ( my $check = check_state( 'NEW' ) ) {
|
||||
perl_action_helper( $action, $check == 1 ? "$globals{STATEMATCH} NEW" : '' );
|
||||
}
|
||||
|
@ -40,16 +40,10 @@ use Shorewall::Rules;
|
||||
|
||||
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' ) ) {
|
||||
perl_action_helper( $action, $check == 1 ? "$globals{STATEMATCH} UNTRACKED" : '' );
|
||||
}
|
||||
|
||||
allow_optimize( get_action_chain );
|
||||
|
||||
1;
|
||||
|
||||
?END PERL;
|
||||
|
Loading…
Reference in New Issue
Block a user