mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-14 11:44:01 +01:00
Don't allow interior brackets in an address range.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
7006c62892
commit
1d4f189b5f
@ -277,8 +277,10 @@ sub process_one_masq1( $$$$$$$$$$ )
|
||||
|
||||
$addr = $1;
|
||||
|
||||
if ( $addr =~ /^(.+)]-\[(.+)$/ ) {
|
||||
if ( $addr =~ /^(.+)-(.+)$/ ) {
|
||||
fatal_error "Correct address range syntax is '[<addr1>-<addr2>]'" if $addr =~ /]-\[/;
|
||||
validate_range( $1, $2 );
|
||||
$addr =~ s/]-\[/-/;
|
||||
} else {
|
||||
validate_address $addr, 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user