mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-18 03:29:12 +01:00
Catch protocol lists in contexts that don't allow them.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
edc0a84e5d
commit
de4e0898b5
@ -324,6 +324,7 @@ sub resolve_proto( $ ) {
|
|||||||
$number = numeric_value ( $proto );
|
$number = numeric_value ( $proto );
|
||||||
defined $number && $number <= 255 ? $number : undef;
|
defined $number && $number <= 255 ? $number : undef;
|
||||||
} else {
|
} else {
|
||||||
|
fatal_error "A protocol list ($proto) is not allowed in this context" if $proto =~ /,/;
|
||||||
#
|
#
|
||||||
# Allow 'icmp' as a synonym for 'ipv6-icmp' in IPv6 compilations
|
# Allow 'icmp' as a synonym for 'ipv6-icmp' in IPv6 compilations
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user