forked from extern/shorewall_code
Store the exported configuration paramaters in a named array
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
2646ec79a5
commit
6612ea6b8c
@ -657,6 +657,30 @@ our %params;
|
|||||||
#
|
#
|
||||||
our %compiler_params;
|
our %compiler_params;
|
||||||
#
|
#
|
||||||
|
# Entries conditionally exported to the compiled script via the aux config file
|
||||||
|
#
|
||||||
|
our @exported_params = ( qw(
|
||||||
|
VERBOSITY
|
||||||
|
LOGFILE
|
||||||
|
LOGFORMAT
|
||||||
|
APRTABLES
|
||||||
|
IPTABLES
|
||||||
|
IP6TABLES
|
||||||
|
IP
|
||||||
|
TC
|
||||||
|
IPSET
|
||||||
|
PATH
|
||||||
|
SHOREWALL_SHELL
|
||||||
|
SHELL
|
||||||
|
SUBSYSLOCK
|
||||||
|
LOCKFILE
|
||||||
|
RESTOREFILE
|
||||||
|
RESTART
|
||||||
|
DYNAMIC_BLACKLIST
|
||||||
|
PAGER
|
||||||
|
)
|
||||||
|
);
|
||||||
|
#
|
||||||
# Action parameters
|
# Action parameters
|
||||||
#
|
#
|
||||||
our %actparams;
|
our %actparams;
|
||||||
@ -7196,8 +7220,8 @@ sub generate_aux_config() {
|
|||||||
|
|
||||||
emit "#\n# Shorewall auxiliary configuration file created by Shorewall version $globals{VERSION} - $date\n#";
|
emit "#\n# Shorewall auxiliary configuration file created by Shorewall version $globals{VERSION} - $date\n#";
|
||||||
|
|
||||||
for my $option ( qw(VERBOSITY LOGFILE LOGFORMAT ARPTABLES IPTABLES IP6TABLES IP TC IPSET PATH SHOREWALL_SHELL SUBSYSLOCK LOCKFILE RESTOREFILE WORKAROUNDS RESTART DYNAMIC_BLACKLIST PAGER) ) {
|
for my $param ( @exported_params ) {
|
||||||
conditionally_add_option $option;
|
conditionally_add_option $param;
|
||||||
}
|
}
|
||||||
|
|
||||||
conditionally_add_option1 'TC_ENABLED';
|
conditionally_add_option1 'TC_ENABLED';
|
||||||
|
Loading…
Reference in New Issue
Block a user