From 4bb3183abbc892c5a9de0b1fc0319bd530019b6c Mon Sep 17 00:00:00 2001 From: Alexander Marx Date: Thu, 24 May 2018 14:22:26 +0200 Subject: [PATCH] BUG11695: Adding/editing rules with preset broken added another check to fill same ports in source and destination when a custom service is selected. Signed-off-by: Alexander Marx Reported-by: erik@vanlinsteeict.nl --- html/cgi-bin/firewall.cgi | 1 + 1 file changed, 1 insertion(+) diff --git a/html/cgi-bin/firewall.cgi b/html/cgi-bin/firewall.cgi index 499f279d1..d17afabb8 100644 --- a/html/cgi-bin/firewall.cgi +++ b/html/cgi-bin/firewall.cgi @@ -757,6 +757,7 @@ sub checkrule } } if($fwdfwsettings{'nat'} eq 'dnat' && $fwdfwsettings{'dnatport'} eq ''){$fwdfwsettings{'dnatport'}=$custsrvport;} + if($fwdfwsettings{'nat'} eq 'dnat' && $fwdfwsettings{'grp3'} eq 'cust_srv'){$fwdfwsettings{'dnatport'}=$custsrvport;} } #check if DNAT port is multiple if($fwdfwsettings{'nat'} eq 'dnat' && $fwdfwsettings{'dnatport'} ne ''){ -- 2.47.2