mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-20 09:47:51 +02:00
Correct handling of LOGMARK
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
d096b9399a
commit
348c6c8cf7
@ -608,6 +608,7 @@ sub initialize( $ ) {
|
|||||||
PANIC => 0,
|
PANIC => 0,
|
||||||
NONE => '',
|
NONE => '',
|
||||||
NFLOG => 'NFLOG',
|
NFLOG => 'NFLOG',
|
||||||
|
LOGMARK => 'LOGMARK',
|
||||||
);
|
);
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -2202,7 +2203,7 @@ sub validate_level( $ ) {
|
|||||||
if ( supplied $qualifier ) {
|
if ( supplied $qualifier ) {
|
||||||
return $rawlevel if $qualifier =~ /^ --/;
|
return $rawlevel if $qualifier =~ /^ --/;
|
||||||
|
|
||||||
if ( $qualifier =~ /[(](.+)[)]?$/ ) {
|
if ( $qualifier =~ /[(](.+)[)]$/ ) {
|
||||||
$sublevel = $1;
|
$sublevel = $1;
|
||||||
|
|
||||||
$sublevel = $validlevels{$sublevel} unless $sublevel =~ /^[0-7]$/;
|
$sublevel = $validlevels{$sublevel} unless $sublevel =~ /^[0-7]$/;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user