mirror of
https://gitlab.com/shorewall/code.git
synced 2025-02-09 06:20:05 +01:00
Optimize chain resolution in process_mangle_rule1()
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
147c7e284f
commit
6779c8307f
@ -4467,9 +4467,12 @@ sub process_mangle_rule1( $$$$$$$$$$$$$$$$$$ ) {
|
|||||||
# Subroutine to resolve which chain to use
|
# Subroutine to resolve which chain to use
|
||||||
#
|
#
|
||||||
my $resolve_chain = sub() {
|
my $resolve_chain = sub() {
|
||||||
|
unless ( $chain ) {
|
||||||
$chain ||= $designator;
|
$chain ||= $designator;
|
||||||
$chain ||= $commandref->{defaultchain};
|
$chain ||= $commandref->{defaultchain};
|
||||||
$chain ||= $default_chain;
|
$chain ||= $default_chain;
|
||||||
|
}
|
||||||
|
|
||||||
$chainref = ensure_chain( 'mangle', $chainnames{$chain} );
|
$chainref = ensure_chain( 'mangle', $chainnames{$chain} );
|
||||||
};
|
};
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user