forked from extern/shorewall_code
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:
parent
ea893f1e35
commit
12d987cd19
@ -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 =~ /^\+/;
|
||||
|
Loading…
Reference in New Issue
Block a user