Fix parsing of HOSTS column in /etc/shorewall6/hosts

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@8992 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2008-12-11 18:09:25 +00:00
parent ea893f1e35
commit 12d987cd19

View File

@ -1018,7 +1018,7 @@ sub validate_hosts_file()
fatal_error "Invalid HOST(S) column contents: $hosts";
}
} else {
if ( $hosts =~ /^([\w.@%-]+\+?)\[(.*)\]\s+$/ ) {
if ( $hosts =~ /^([\w.@%-]+\+?):\[(.*)\]\s*$/ ) {
$interface = $1;
$hosts = $2;
$zoneref->{options}{complex} = 1 if $hosts =~ /^\+/;