mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
BUG11242: Fix for adding 2 VPN Hosts/network with same name
If one has an IPSec network named "aaa" and an OpenVPn Host with the same name it was not possible to group them together because of the same name. Now the Network type is also checked wich allows Entries with same name, but different networks. Fixes: #11242 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
c6bc0fb03e
commit
bc4a68812b
@@ -624,9 +624,9 @@ if ($fwhostsettings{'ACTION'} eq 'savegrp')
|
||||
}
|
||||
#check if host/net exists in grp
|
||||
|
||||
my $test="$grp,$fwhostsettings{'oldremark'},@target";
|
||||
my $test="$grp,$fwhostsettings{'oldremark'},@target,$type";
|
||||
foreach my $key (keys %customgrp) {
|
||||
my $test1="$customgrp{$key}[0],$customgrp{$key}[1],$customgrp{$key}[2]";
|
||||
my $test1="$customgrp{$key}[0],$customgrp{$key}[1],$customgrp{$key}[2],$customgrp{$key}[3]";
|
||||
if ($test1 eq $test){
|
||||
$errormessage=$Lang::tr{'fwhost err isingrp'};
|
||||
$fwhostsettings{'update'} = 'on';
|
||||
|
||||
Reference in New Issue
Block a user