Enable parameters for actions

This commit is contained in:
Tom Eastep 2010-12-18 16:29:29 -08:00
parent 4b22bbd90d
commit 45faba0b7c

View File

@ -820,6 +820,8 @@ sub process_rule_common ( $$$$$$$$$$$$$$$$ ) {
} elsif ( $actiontype & SET ) { } elsif ( $actiontype & SET ) {
require_capability( 'IPSET_MATCH', 'SET and UNSET rules', '' ); require_capability( 'IPSET_MATCH', 'SET and UNSET rules', '' );
fatal_error "$action rules require a set name parameter" unless $param; fatal_error "$action rules require a set name parameter" unless $param;
} elsif ( $actiontype & ACTION ) {
split_list $param, 'Action parameter';
} else { } else {
fatal_error "The $basictarget TARGET does not accept a parameter" unless $param eq ''; fatal_error "The $basictarget TARGET does not accept a parameter" unless $param eq '';
} }