Firewall: Bugfix - When editing a DNAT rule and setting prot to "all" the port from previus rule was not resettet

This commit is contained in:
Alexander Marx
2013-12-19 17:26:12 +01:00
committed by Michael Tremer
parent dd6c9bb9c3
commit ce2dbe92ce

View File

@@ -783,6 +783,10 @@ sub checkrule
}
$fwdfwsettings{'dnatport'}=join("|",@values);
}
#check if a rule with prot tcp or udp and ports is edited and now prot is "all", then delete all ports
if($fwdfwsettings{'PROT'} eq ''){
$fwdfwsettings{'dnatport'}='';
}
}
#check valid remark
if ($fwdfwsettings{'ruleremark'} ne '' && !&validremark($fwdfwsettings{'ruleremark'})){