mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-19 15:32:59 +02:00
Forward Firewall: Fixes Problem when editing a host and afterwards pressing F5, a emtpy entry was created in customhosts
This commit is contained in:
committed by
Michael Tremer
parent
bfac6bd4dc
commit
5e97072306
@@ -108,7 +108,6 @@ if ($fwhostsettings{'ACTION'} eq 'updatehost')
|
||||
{
|
||||
if($customhost{$key}[0] eq $fwhostsettings{'orgname'})
|
||||
{
|
||||
$fwhostsettings{'orgname'} = $customhost{$key}[0];
|
||||
if ($customhost{$key}[1] eq 'ip'){
|
||||
($ip,$subnet) = split (/\//,$customhost{$key}[2]);
|
||||
}else{
|
||||
@@ -117,11 +116,15 @@ if ($fwhostsettings{'ACTION'} eq 'updatehost')
|
||||
$fwhostsettings{'orgip'} = $ip;
|
||||
$fwhostsettings{'count'} = $customhost{$key}[3];
|
||||
delete $customhost{$key};
|
||||
&General::writehasharray("$confighost", \%customhost);
|
||||
}
|
||||
}
|
||||
&General::writehasharray("$confighost", \%customhost);
|
||||
$fwhostsettings{'actualize'} = 'on';
|
||||
if($fwhostsettings{'orgip'}){
|
||||
$fwhostsettings{'ACTION'} = 'savehost';
|
||||
}else{
|
||||
$fwhostsettings{'ACTION'} = $Lang::tr{'fwhost newhost'};
|
||||
}
|
||||
}
|
||||
if ($fwhostsettings{'ACTION'} eq 'updateservice')
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user