mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-18 04:11:22 +01:00
fix multiple ipsets in an imatch
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
cc07e74532
commit
6148c909f2
@ -4707,10 +4707,10 @@ sub imatch_source_net( $;$\$ ) {
|
||||
|
||||
for $net ( @sets ) {
|
||||
fatal_error "Expected ipset name ($net)" unless $net =~ /^(!?)(\+?)[a-zA-Z][-\w]*(\[.*\])?/;
|
||||
push @result, join( '', $1 ? '! ' : '', get_set_flags( $net, 'src' ) );
|
||||
push @result , ( set => join( '', $1 ? '! ' : '', get_set_flags( $net, 'src' ) ) );
|
||||
}
|
||||
|
||||
return ( s => \@result );
|
||||
return \@result;
|
||||
}
|
||||
|
||||
if ( $net =~ s/^!// ) {
|
||||
@ -4806,7 +4806,7 @@ sub imatch_dest_net( $ ) {
|
||||
push @result , ( set => join( '', $1 ? '! ' : '', get_set_flags( $net, 'dst' ) ) );
|
||||
}
|
||||
|
||||
return ( set => \@result );
|
||||
return \@result;
|
||||
}
|
||||
|
||||
if ( $net =~ s/^!// ) {
|
||||
|
Loading…
Reference in New Issue
Block a user