mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-28 02:23:20 +01:00
Fix NFLOG/ULOG fiasco
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@7843 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
1d534e1d9c
commit
f4183c8d5b
@ -1309,7 +1309,8 @@ sub level_error( $ ) {
|
||||
}
|
||||
|
||||
sub validate_level( $ ) {
|
||||
my $level = uc $_[0];
|
||||
my $rawlevel = $_[0];
|
||||
my $level = uc $rawlevel;
|
||||
|
||||
if ( defined $level && $level ne '' ) {
|
||||
$level =~ s/!$//;
|
||||
@ -1338,10 +1339,10 @@ sub validate_level( $ ) {
|
||||
}
|
||||
|
||||
if ( $level =~ /^NFLOG --/ or $level =~ /^ULOG --/ ) {
|
||||
return $level;
|
||||
return $rawlevel;
|
||||
}
|
||||
|
||||
level_error( $level );
|
||||
level_error( $rawlevel );
|
||||
}
|
||||
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user