mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-23 05:58:44 +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
|
||||
#
|
||||
my $resolve_chain = sub() {
|
||||
$chain ||= $designator;
|
||||
$chain ||= $commandref->{defaultchain};
|
||||
$chain ||= $default_chain;
|
||||
unless ( $chain ) {
|
||||
$chain ||= $designator;
|
||||
$chain ||= $commandref->{defaultchain};
|
||||
$chain ||= $default_chain;
|
||||
}
|
||||
|
||||
$chainref = ensure_chain( 'mangle', $chainnames{$chain} );
|
||||
};
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user