mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-26 09:33:14 +01:00
Don't leave unused sfilter chains in the config
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
f5bda84e79
commit
60b8e92dc1
@ -568,9 +568,13 @@ sub add_common_rules() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
# Delete 'sfilter' chain unless there are referenced to it
|
# Delete 'sfilter' chains unless there are referenced to them
|
||||||
#
|
#
|
||||||
$chainref->{referenced} = 0 unless keys %{($chainref = $filter_table->{sfilter})->{references}};
|
for ( qw/sfilter sfilter1/ ) {
|
||||||
|
if ( $chainref = $filter_table->{$_} ) {
|
||||||
|
$chainref->{referenced} = 0 unless keys %{$chainref->{references}};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
run_user_exit1 'initdone';
|
run_user_exit1 'initdone';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user