mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-23 22:58:52 +01:00
Allow IP range in the hosts file
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
431309678a
commit
0efc0451c1
@ -763,7 +763,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