mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-08 16:54:10 +01:00
Simplify an RE
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
d15475efae
commit
7cbf113ba0
@ -3360,8 +3360,8 @@ sub get_configuration( $ ) {
|
||||
default_log_level 'LOGALLNEW', '';
|
||||
|
||||
if ( $val = $config{MACLIST_DISPOSITION} ) {
|
||||
if ( $val =~ /^((?:A_)?(?:DROP))$/ ) {
|
||||
$globals{MACLIST_TARGET} = $1;
|
||||
if ( $val =~ /^(?:A_)?DROP$/ ) {
|
||||
$globals{MACLIST_TARGET} = $val;
|
||||
} elsif ( $val eq 'REJECT' ) {
|
||||
$globals{MACLIST_TARGET} = 'reject';
|
||||
} elsif ( $val eq 'A_REJECT' ) {
|
||||
|
Loading…
Reference in New Issue
Block a user