forked from extern/shorewall_code
$0 expands to the current action chain name.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
7673b1ac4b
commit
bf75b2b919
@ -2480,8 +2480,8 @@ sub expand_variables( \$ ) {
|
||||
my $val;
|
||||
|
||||
if ( $var =~ /^\d+$/ ) {
|
||||
fatal_error "Undefined parameter (\$$var)" unless $var > 0 && defined $actparms[$var];
|
||||
$val = $actparms[$var];
|
||||
fatal_error "Undefined parameter (\$$var)" unless defined $actparms[$var];
|
||||
$val = $var ? $actparms[$var] : $actparms[0]->{name};
|
||||
} elsif ( exists $params{$var} ) {
|
||||
$val = $params{$var};
|
||||
} elsif ( exists $shorewallrc{$var} ) {
|
||||
|
Loading…
Reference in New Issue
Block a user