mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-24 23:28:59 +01:00
Use filename stored in the actions table
- Avoid a find_file call on each action invocation Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
c631173310
commit
28e0cb5335
@ -1814,7 +1814,7 @@ sub process_action(\$\$$) {
|
|||||||
fatal_error "Action $action may not be used in the mangle file" if $chainref->{table} eq 'mangle';
|
fatal_error "Action $action may not be used in the mangle file" if $chainref->{table} eq 'mangle';
|
||||||
}
|
}
|
||||||
|
|
||||||
my $actionfile = find_file "action.$action";
|
my $actionfile = $actions{$action}->{file};
|
||||||
|
|
||||||
fatal_error "Missing Action File ($actionfile)" unless -f $actionfile;
|
fatal_error "Missing Action File ($actionfile)" unless -f $actionfile;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user