mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-10 02:55:55 +02:00
BUG10806: fix wrong customhostgroupcheck
The function to check for valid hostgroup entries not only checked the target hostgroup but also the source hostgroup if any. This lead to the error. Now the check only affects target hostgroups because it does not matter if a sourcegroup contains mac addresses. Signed-off-by: Alexander Marx <alexander.marx@ipfire.org> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Michael Tremer
parent
924f5d6f1a
commit
8b7417c50b
@@ -597,7 +597,7 @@ sub checktarget
|
||||
&General::readhasharray("$confighost", \%customhost);
|
||||
foreach my $grpkey (sort keys %customgrp){
|
||||
foreach my $hostkey (sort keys %customhost){
|
||||
if ($customgrp{$grpkey}[2] eq $customhost{$hostkey}[0] && $customhost{$hostkey}[1] eq 'mac'){
|
||||
if ($customgrp{$grpkey}[2] eq $customhost{$hostkey}[0] && $customgrp{$grpkey}[2] eq $fwdfwsettings{$fwdfwsettings{'grp2'}} && $customhost{$hostkey}[1] eq 'mac'){
|
||||
$hint=$Lang::tr{'fwdfw hint mac'};
|
||||
return $hint;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user