mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-06 09:46:49 +02:00
Correct trace output
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
b84a9e16e6
commit
4989f694cd
@ -1682,8 +1682,8 @@ sub insert_irule( $$$$;@ ) {
|
|||||||
$ruleref->{comment} = shortlineinfo( $chainref->{origin} ) || $ruleref->{comment} || $comment;
|
$ruleref->{comment} = shortlineinfo( $chainref->{origin} ) || $ruleref->{comment} || $comment;
|
||||||
|
|
||||||
if ( $number >= @$rulesref ) {
|
if ( $number >= @$rulesref ) {
|
||||||
$number = @$rulesref;
|
|
||||||
push @$rulesref, $ruleref;
|
push @$rulesref, $ruleref;
|
||||||
|
$number = @$rulesref;
|
||||||
} else {
|
} else {
|
||||||
splice( @$rulesref, $number, 0, $ruleref );
|
splice( @$rulesref, $number, 0, $ruleref );
|
||||||
$number++;
|
$number++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user