From 93c830869dde03c726180482554d47b3d3a3cf4b Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Mon, 11 Dec 2017 10:20:23 +0100 Subject: [PATCH] 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 --- .../luasrc/view/firewall/cbi_addrule.htm | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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 %>
-- 2.25.1