luci-base: show default forwarding policy in zone forwarding list
authorJo-Philipp Wich <jo@mein.io>
Wed, 10 Oct 2018 06:32:54 +0000 (08:32 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 10 Oct 2018 06:36:08 +0000 (08:36 +0200)
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>
modules/luci-base/luasrc/view/cbi/firewall_zoneforwards.htm

index b38e4b13dbd229a5267e44904260b3860fe87efe..dc251dbd94d11eda56bf290ba07b3baf831b319a 100644 (file)
@@ -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>