mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-18 20:30:43 +01:00
Change ipset flags error to a warning
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
f8057fed88
commit
cd3a9854f8
@ -4313,8 +4313,13 @@ sub get_set_flags( $$ ) {
|
|||||||
} elsif ( $setname =~ /^(.*)\[((src|dst)(,(src|dst))*)\]$/ ) {
|
} elsif ( $setname =~ /^(.*)\[((src|dst)(,(src|dst))*)\]$/ ) {
|
||||||
$setname = $1;
|
$setname = $1;
|
||||||
$options = $2;
|
$options = $2;
|
||||||
my @OPTIONS = split /,/, $options;
|
|
||||||
fatal_error "Invalid flags ($options) for a " . $option eq 'src' ? 'SOURCE' : 'DEST' . ' column';
|
my @options = split /,/, $options;
|
||||||
|
my %typemap = ( src => 'Source', dst => 'Destination' );
|
||||||
|
|
||||||
|
for ( @options ) {
|
||||||
|
warning_messsage( "The '$_' ipset flag is used in a $typemap{$option} column" ), last unless $_ eq $option;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$setname =~ s/^\+//;
|
$setname =~ s/^\+//;
|
||||||
|
Loading…
Reference in New Issue
Block a user