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:
Tom Eastep 2016-03-14 10:55:39 -07:00
parent c631173310
commit 28e0cb5335

View File

@ -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;