mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-15 12:14:32 +01:00
Validate SOURCE/DEST fit for ipset flags
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
58f0425d4a
commit
1c7476fe61
@ -4313,6 +4313,8 @@ sub get_set_flags( $$ ) {
|
||||
} elsif ( $setname =~ /^(.*)\[((src|dst)(,(src|dst))*)\]$/ ) {
|
||||
$setname = $1;
|
||||
$options = $2;
|
||||
my @OPTIONS = split /,/, $options;
|
||||
fatal_error "Invalid flags ($options) for a " . $option eq 'src' ? 'SOURCE' : 'DEST' . ' column';
|
||||
}
|
||||
|
||||
$setname =~ s/^\+//;
|
||||
|
Loading…
Reference in New Issue
Block a user