mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-14 01:28:13 +01:00
Unify the setting of $targetref and $jump
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
83e6e2f105
commit
b789d825f8
@ -4523,14 +4523,16 @@ sub expand_rule( $$$$$$$$$$;$ )
|
||||
my ($iiface, $diface, $inets, $dnets, $iexcl, $dexcl, $onets , $oexcl, $trivialiexcl, $trivialdexcl );
|
||||
my $chain = $chainref->{name};
|
||||
my $table = $chainref->{table};
|
||||
my $jump = $target ? '-j ' . $target : '';
|
||||
my $jump;
|
||||
my $mac;
|
||||
my $targetref;
|
||||
|
||||
if ( $target ) {
|
||||
my ( $basic_target, $rest ) = split ' ', $target, 2;
|
||||
my ( $basictarget, $rest ) = split ' ', $target, 2;
|
||||
|
||||
$targetref = $chain_table{$table}{$basic_target};
|
||||
$jump = '-j ' . $target unless $targetref = $chain_table{$table}{$basictarget};
|
||||
} else {
|
||||
$jump = '';
|
||||
}
|
||||
|
||||
our @ends = ();
|
||||
|
Loading…
Reference in New Issue
Block a user