Simplify an RE

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2011-05-20 08:33:36 -07:00
parent d15475efae
commit 7cbf113ba0

View File

@ -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' ) {