mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-21 18:21:27 +02:00
Allow Extension Scripts for Accounting Chains
This commit is contained in:
parent
0d651f093b
commit
728ad2fecf
@ -948,6 +948,20 @@ sub ensure_accounting_chain( $ )
|
|||||||
$chainref = new_chain 'filter' , $chain unless $chainref;
|
$chainref = new_chain 'filter' , $chain unless $chainref;
|
||||||
$chainref->{accounting} = 1;
|
$chainref->{accounting} = 1;
|
||||||
$chainref->{referenced} = 1;
|
$chainref->{referenced} = 1;
|
||||||
|
|
||||||
|
my $file = find_file $chain;
|
||||||
|
|
||||||
|
if ( -f $file ) {
|
||||||
|
progress_message "Processing $file...";
|
||||||
|
|
||||||
|
my ( $level, $tag ) = ( '', '' );
|
||||||
|
|
||||||
|
unless ( my $return = eval `cat $file` ) {
|
||||||
|
fatal_error "Couldn't parse $file: $@" if $@;
|
||||||
|
fatal_error "Couldn't do $file: $!" unless defined $return;
|
||||||
|
fatal_error "Couldn't run $file" unless $return;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$chainref;
|
$chainref;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user