libs/web: align interface related widgets to changed network model api
[project/luci.git] / libs / web / luasrc / view / cbi / firewall_zoneforwards.htm
index debfddc..8e0a6a1 100644 (file)
@@ -35,7 +35,7 @@
                        <%- end -%>
                        <%
                                local nempty = true
-                               for _, iface in ipairs(net and net:get_interfaces() or {}) do
+                               for _, iface in ipairs(net:is_bridge() and net:get_interfaces() or { net:get_interface() }) do
                                        nempty = false
                         %>
                                <img<%=attr("title", iface:get_i18n())%> style="width:16px; height:16px; vertical-align:middle" src="<%=resource%>/icons/<%=iface:type()%><%=iface:is_up() and "" or "_disabled"%>.png" />