forked from extern/shorewall_code
Fix for multiple nfacct patch.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
b87b4b61d8
commit
cbdca08fea
@ -224,10 +224,9 @@ sub process_accounting_rule1( $$$$$$$$$$$ ) {
|
||||
$target = validate_level $action;
|
||||
} elsif ( $action =~ /^NFACCT\(([\w,]+)\)$/ ) {
|
||||
require_capability 'NFACCT_MATCH', 'The NFACCT action', 's';
|
||||
$nfobjects{$1} = 1;
|
||||
$target = '';
|
||||
my @objects = split_list $1, 'nfacct';
|
||||
$rule .= "-m nfacct --nfacct-name $_ " for @objects;
|
||||
$rule .= "-m nfacct --nfacct-name $_ ", $nfobjects{$_} = 1 for @objects;
|
||||
} else {
|
||||
( $action, my $cmd ) = split /:/, $action;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user