forked from extern/shorewall_code
Enable parameters for actions
This commit is contained in:
parent
4b22bbd90d
commit
45faba0b7c
@ -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 '';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user