mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-27 01:53:27 +01:00
Add a comment in Shorewall::Chains::optimize_level8()
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
5a9f179e25
commit
8cb98f16ea
@ -3900,7 +3900,10 @@ sub optimize_level8( $$$ ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$combined{ $chainref1->{name} } = $chainref->{name};
|
$combined{ $chainref1->{name} } = $chainref->{name};
|
||||||
|
#
|
||||||
|
# While rare, it is possible for a policy chain to be combined with a non-policy chain. So we need to preserve
|
||||||
|
# the policy attributes in the combined chain
|
||||||
|
#
|
||||||
if ( $chainref->{policychain} ) {
|
if ( $chainref->{policychain} ) {
|
||||||
@{$chainref1}{qw(policychain policy)} = @{$chainref}{qw(policychain policy)} unless $chainref1->{policychain};
|
@{$chainref1}{qw(policychain policy)} = @{$chainref}{qw(policychain policy)} unless $chainref1->{policychain};
|
||||||
} elsif ( $chainref1->{policychain} ) {
|
} elsif ( $chainref1->{policychain} ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user