summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/luasrc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2018-10-10 08:32:54 +0200
committerJo-Philipp Wich <jo@mein.io>2018-10-10 08:36:08 +0200
commit24d1e7608b23cd80eca41a78916a2a0f2bd224c2 (patch)
treeea0658465d063167180317e731f8549444737994 /modules/luci-base/luasrc
parentcb7f9d2ed3ec65ba399cb7d47a455bbfb3383a9d (diff)
luci-base: show default forwarding policy in zone forwarding list
The zone forwarding list widget misleadingly displays the intra-zone forwarding policy as default policy action when no forwardings exist instead of the appropriate global defaults forwarding policy which is the one applied to inter-zone forwarded traffic. Fix the issue by displaying the defaults policy and not the per-zone policy to match what the firewall implementation is actually doing. Fixes: #2213 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base/luasrc')
-rw-r--r--modules/luci-base/luasrc/view/cbi/firewall_zoneforwards.htm2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-base/luasrc/view/cbi/firewall_zoneforwards.htm b/modules/luci-base/luasrc/view/cbi/firewall_zoneforwards.htm
index b38e4b13d..dc251dbd9 100644
--- a/modules/luci-base/luasrc/view/cbi/firewall_zoneforwards.htm
+++ b/modules/luci-base/luasrc/view/cbi/firewall_zoneforwards.htm
@@ -63,7 +63,7 @@
if empty then
%>
<label class="zonebadge zonebadge-empty">
- <strong><%=zone:forward():upper()%></strong>
+ <strong><%=def:forward():upper()%></strong>
</label>
<% end %>
</div>