mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-23 11:11:32 +02:00
Abandon the fantesy that multiple optimize 8 passes will achieve anything.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
938cfd7ba4
commit
a1a78cf09b
@ -1772,10 +1772,6 @@ sub optimize_ruleset() {
|
|||||||
#
|
#
|
||||||
# Now delete duplicate chains
|
# Now delete duplicate chains
|
||||||
#
|
#
|
||||||
$progress = 1;
|
|
||||||
|
|
||||||
while ( $progress ) {
|
|
||||||
$progress = 0;
|
|
||||||
$passes++;
|
$passes++;
|
||||||
|
|
||||||
for my $chainref ( grep $_->{referenced} && ! $_->{builtin}, values %{$chain_table{$table}} ) {
|
for my $chainref ( grep $_->{referenced} && ! $_->{builtin}, values %{$chain_table{$table}} ) {
|
||||||
@ -1793,8 +1789,6 @@ sub optimize_ruleset() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
replace_references1 $chainref1, $chainref->{name}, '';
|
replace_references1 $chainref1, $chainref->{name}, '';
|
||||||
$progress = 1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user