From: Florian Eckert Date: Mon, 11 Dec 2017 09:20:23 +0000 (+0100) Subject: luci-app-firewall: show port opening cbi section independently of lan zone definition X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=93c830869dde03c726180482554d47b3d3a3cf4b luci-app-firewall: show port opening cbi section independently of lan zone definition Current the append traffic rules for "port forwarding" and "port opening" to the router are only shown if 'wan' and 'lan' zone are defined at once. For "port opening" to the router only need a 'wan' zone. Removing 'lan' zone dependency for 'port opening' reflect this behavior. Signed-off-by: Florian Eckert --- diff --git a/applications/luci-app-firewall/luasrc/view/firewall/cbi_addrule.htm b/applications/luci-app-firewall/luasrc/view/firewall/cbi_addrule.htm index 463b2e05f..58121c420 100644 --- a/applications/luci-app-firewall/luasrc/view/firewall/cbi_addrule.htm +++ b/applications/luci-app-firewall/luasrc/view/firewall/cbi_addrule.htm @@ -5,7 +5,7 @@ %>
- <% if wz and lz then %> + <% if wz then %>
@@ -37,7 +37,8 @@
- + <% end %> + <% if wz and lz then %> @@ -71,7 +72,11 @@

<%:New forward rule%>:
+ <% else %> + + <% end %> + <% if wz then %> - <% else %> - <% end %>