mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
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:
committed by
Michael Tremer
parent
dd6c9bb9c3
commit
ce2dbe92ce
@@ -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'})){
|
||||
|
||||
Reference in New Issue
Block a user