mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-22 13:39:06 +01:00
Cleaner handling of trailing spaces from log_irule_limit.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
b215cf379a
commit
1a44b66656
@ -2608,7 +2608,6 @@ sub ensure_manual_chain($) {
|
||||
$chainref;
|
||||
}
|
||||
|
||||
sub log_rule_limit( $$$$$$$$ );
|
||||
sub log_irule_limit( $$$$$$$@ );
|
||||
|
||||
sub ensure_blacklog_chain( $$$$ ) {
|
||||
@ -6140,12 +6139,12 @@ sub log_irule_limit( $$$$$$$@ ) {
|
||||
}
|
||||
|
||||
if ( $level =~ '^ULOG' ) {
|
||||
$prefix = "$level --ulog-prefix \"$prefix\" ";
|
||||
$prefix = "$level --ulog-prefix \"$prefix\"";
|
||||
} elsif ( $level =~ /^NFLOG/ ) {
|
||||
$prefix = "$level --nflog-prefix \"$prefix\" ";
|
||||
$prefix = "$level --nflog-prefix \"$prefix\"";
|
||||
} elsif ( $level =~ '^LOGMARK' ) {
|
||||
$prefix = join( '', substr( $prefix, 0, 12 ) , ':' ) if length $prefix > 13;
|
||||
$prefix = "$level --log-prefix \"$prefix\" ";
|
||||
$prefix = "$level --log-prefix \"$prefix\"";
|
||||
} else {
|
||||
my $options = $globals{LOGPARMS};
|
||||
|
||||
@ -6159,8 +6158,6 @@ sub log_irule_limit( $$$$$$$@ ) {
|
||||
}
|
||||
}
|
||||
|
||||
$prefix =~ s/ $//;
|
||||
|
||||
if ( $command eq 'add' ) {
|
||||
add_ijump ( $chainref, j => $prefix , @matches );
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user