forked from extern/shorewall_code
Another tiny performance enhancement
This commit is contained in:
parent
49a2ff05ce
commit
787a1867a0
@ -38,7 +38,7 @@ our @EXPORT_OK = qw( );
|
||||
our $VERSION = '4.3_7';
|
||||
|
||||
#
|
||||
# Called by the compiler
|
||||
# Called by the compiler to [re-]initialize this module's state
|
||||
#
|
||||
sub initialize() {
|
||||
our $jumpchainref;
|
||||
|
@ -414,10 +414,11 @@ sub decr_cmd_level( $ ) {
|
||||
#
|
||||
|
||||
sub add_commands ( $$;@ ) {
|
||||
my $chainref = shift @_;
|
||||
my $chainref = shift @_;
|
||||
my $indentation = ' ' x $chainref->{cmdlevel};
|
||||
|
||||
for ( @_ ) {
|
||||
push @{$chainref->{rules}}, join ('', ' ' x $chainref->{cmdlevel} , $_ );
|
||||
push @{$chainref->{rules}}, join ('', $indentation , $_ );
|
||||
}
|
||||
|
||||
$chainref->{referenced} = 1;
|
||||
|
@ -571,7 +571,7 @@ sub compiler {
|
||||
}
|
||||
|
||||
#
|
||||
# Now that we know the address family that we are dealing with (IPv4/IPv6), we can initialize the other modules' globals
|
||||
# Now that we know the address family (IPv4/IPv6), we can initialize the other modules' globals
|
||||
#
|
||||
initialize_package_globals;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user