mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-19 12:50:57 +01:00
Allow IP range in the hosts file
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
1195661264
commit
9dd66fc6ff
@ -764,7 +764,11 @@ sub add_group_to_zone($$$$$)
|
||||
$new = \@exclusions;
|
||||
}
|
||||
|
||||
$host = validate_net( $host, 1 ) unless $host =~ /^\+/;
|
||||
if ( $host =~ /-/ ) {
|
||||
&validate_range( split('-', $host, 2 ) )
|
||||
} else {
|
||||
$host = validate_net( $host, 1 ) unless $host =~ /^\+/;
|
||||
}
|
||||
|
||||
unless ( $switched ) {
|
||||
if ( $type == $zonetype ) {
|
||||
|
Loading…
Reference in New Issue
Block a user