forked from extern/shorewall_code
Fix hosts entries with wildcard interface
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5951 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
62463ad49e
commit
a8f3e3faa9
@ -72,7 +72,7 @@ sub validate_hosts_file()
|
|||||||
|
|
||||||
my $interface;
|
my $interface;
|
||||||
|
|
||||||
if ( $hosts =~ /^([\w.@%-]+):(.*)$/ ) {
|
if ( $hosts =~ /^([\w.@%-]+\+?):(.*)$/ ) {
|
||||||
$interface = $1;
|
$interface = $1;
|
||||||
$hosts = $2;
|
$hosts = $2;
|
||||||
$zoneref->{options}{complex} = 1 if $hosts =~ /^\+/;
|
$zoneref->{options}{complex} = 1 if $hosts =~ /^\+/;
|
||||||
@ -103,9 +103,7 @@ sub validate_hosts_file()
|
|||||||
$optionsref = \%options;
|
$optionsref = \%options;
|
||||||
}
|
}
|
||||||
|
|
||||||
my @h = split ',', $hosts;
|
add_group_to_zone( $zone, $type , $interface, [ split ',', $hosts ] , $optionsref);
|
||||||
|
|
||||||
add_group_to_zone( $zone, $type , $interface, \@h , $optionsref);
|
|
||||||
|
|
||||||
progress_message " Host \"$line\" validated";
|
progress_message " Host \"$line\" validated";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user