Allow IP range in the hosts file

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2012-10-07 15:55:00 -07:00
parent 1195661264
commit 9dd66fc6ff

View File

@ -764,7 +764,11 @@ sub add_group_to_zone($$$$$)
$new = \@exclusions;
}
if ( $host =~ /-/ ) {
&validate_range( split('-', $host, 2 ) )
} else {
$host = validate_net( $host, 1 ) unless $host =~ /^\+/;
}
unless ( $switched ) {
if ( $type == $zonetype ) {