mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-18 23:57:14 +02:00
Minor cleanup of the Config module
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
eb26a467e9
commit
965a8e8f68
@ -536,7 +536,7 @@ our %config_files = ( #accounting => 1,
|
|||||||
tunnels => 1,
|
tunnels => 1,
|
||||||
zones => 1 );
|
zones => 1 );
|
||||||
#
|
#
|
||||||
# Options that involve the the AUDIT target
|
# Options that involve the AUDIT target
|
||||||
#
|
#
|
||||||
our @auditoptions = qw( BLACKLIST_DISPOSITION MACLIST_DISPOSITION TCP_FLAGS_DISPOSITION );
|
our @auditoptions = qw( BLACKLIST_DISPOSITION MACLIST_DISPOSITION TCP_FLAGS_DISPOSITION );
|
||||||
#
|
#
|
||||||
@ -1168,7 +1168,7 @@ sub initialize( $;$$) {
|
|||||||
#
|
#
|
||||||
# Process the global shorewallrc file
|
# Process the global shorewallrc file
|
||||||
#
|
#
|
||||||
# Note: The build file executes this function passing only the protocol family
|
# Note: The build script calls this function passing only the protocol family
|
||||||
#
|
#
|
||||||
process_shorewallrc( $shorewallrc,
|
process_shorewallrc( $shorewallrc,
|
||||||
$family == F_IPV4 ? 'shorewall' : 'shorewall6'
|
$family == F_IPV4 ? 'shorewall' : 'shorewall6'
|
||||||
@ -1219,9 +1219,8 @@ sub compiletime() {
|
|||||||
# Create 'currentlineinfo'
|
# Create 'currentlineinfo'
|
||||||
#
|
#
|
||||||
sub currentlineinfo() {
|
sub currentlineinfo() {
|
||||||
my $linenumber = $currentlinenumber || 1;
|
|
||||||
|
|
||||||
if ( $currentfilename ) {
|
if ( $currentfilename ) {
|
||||||
|
my $linenumber = $currentlinenumber || 1;
|
||||||
my $lineinfo = " $currentfilename ";
|
my $lineinfo = " $currentfilename ";
|
||||||
|
|
||||||
if ( $linenumber eq 'EOF' ) {
|
if ( $linenumber eq 'EOF' ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user