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;
|
$target = validate_level $action;
|
||||||
} elsif ( $action =~ /^NFACCT\(([\w,]+)\)$/ ) {
|
} elsif ( $action =~ /^NFACCT\(([\w,]+)\)$/ ) {
|
||||||
require_capability 'NFACCT_MATCH', 'The NFACCT action', 's';
|
require_capability 'NFACCT_MATCH', 'The NFACCT action', 's';
|
||||||
$nfobjects{$1} = 1;
|
|
||||||
$target = '';
|
$target = '';
|
||||||
my @objects = split_list $1, 'nfacct';
|
my @objects = split_list $1, 'nfacct';
|
||||||
$rule .= "-m nfacct --nfacct-name $_ " for @objects;
|
$rule .= "-m nfacct --nfacct-name $_ ", $nfobjects{$_} = 1 for @objects;
|
||||||
} else {
|
} else {
|
||||||
( $action, my $cmd ) = split /:/, $action;
|
( $action, my $cmd ) = split /:/, $action;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user