mirror of
https://gitlab.com/shorewall/code.git
synced 2025-02-20 19:51:31 +01:00
Remove %zones{option}{nested}
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
e0b360513c
commit
fecd091078
@ -1558,7 +1558,7 @@ sub generate_matrix() {
|
||||
my $chain = 0;
|
||||
my $dnatref = ensure_chain 'nat' , dnat_chain( $zone );
|
||||
my $notrackref = ensure_chain 'raw' , notrack_chain( $zone );
|
||||
my $nested = $zoneref->{options}{nested};
|
||||
my $nested = @{$zoneref->{parents}};
|
||||
my $parenthasnat = 0;
|
||||
my $parenthasnotrack = 0;
|
||||
|
||||
|
@ -116,8 +116,7 @@ use constant { IN_OUT => 1,
|
||||
#
|
||||
# %zones{<zone1> => {type => <zone type> FIREWALL, IP, IPSEC, BPORT;
|
||||
# complex => 0|1
|
||||
# options => { nested => 0|1
|
||||
# super => 0|1
|
||||
# options => { super => 0|1
|
||||
# in_out => < policy match string >
|
||||
# in => < policy match string >
|
||||
# out => < policy match string >
|
||||
@ -490,7 +489,6 @@ sub process_zone( \$ ) {
|
||||
options => { in_out => parse_zone_option_list( $options , $type, $complex , IN_OUT ) ,
|
||||
in => parse_zone_option_list( $in_options , $type , $complex , IN ) ,
|
||||
out => parse_zone_option_list( $out_options , $type , $complex , OUT ) ,
|
||||
nested => @parents > 0 ,
|
||||
super => 0 ,
|
||||
} ,
|
||||
complex => ( $type & IPSEC || $complex ) ,
|
||||
@ -519,7 +517,6 @@ sub process_zone( \$ ) {
|
||||
progress_message_nocompress " Zone $zone:\tmark value " . in_hex( $zoneref->{mark} = $mark );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ( $zoneref->{options}{in_out}{blacklist} ) {
|
||||
for ( qw/in out/ ) {
|
||||
|
Loading…
Reference in New Issue
Block a user