summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-firewall/luasrc/view
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-08-08 15:20:07 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-08-08 15:20:07 +0000
commitacb289083c6cc94363db8adbb94cfee8ff34938a (patch)
tree783188b42cf578928b7ee76e20f6d89a6792448f /applications/luci-firewall/luasrc/view
parentdf8601c86415bd048b00ce992b2bf2a81e9c4b38 (diff)
applications/luci-firewall: fix rule table formatting, add mac & ip hints to various ip related fields
Diffstat (limited to 'applications/luci-firewall/luasrc/view')
-rw-r--r--applications/luci-firewall/luasrc/view/firewall/cbi_addforward.htm6
1 files changed, 3 insertions, 3 deletions
diff --git a/applications/luci-firewall/luasrc/view/firewall/cbi_addforward.htm b/applications/luci-firewall/luasrc/view/firewall/cbi_addforward.htm
index 6a49266b7b..9b17d52e7f 100644
--- a/applications/luci-firewall/luasrc/view/firewall/cbi_addforward.htm
+++ b/applications/luci-firewall/luasrc/view/firewall/cbi_addforward.htm
@@ -45,9 +45,9 @@
cbi_validate_field('_newfwd.intport', true, 'portrange');
cbi_combobox_init('_newfwd.intaddr', {
- <% local i, e; for i, e in ipairs(luci.sys.net.arptable()) do -%>
- <%- if i > 1 then %>,<% end -%>'<%=e["IP address"]%>': '<%=e["IP address"]%>'
- <%- end %> }, '', '<%: -- custom -- %>');
+ <% first = true; luci.sys.net.ipv4_hints(function(ip, name) %>
+ <%- if first then first = false else %>,<% end -%>'<%=ip%>': '<%=ip%> (<%=name%>)'
+ <%- end) %> }, '', '<%: -- custom -- %>');
cbi_bind(document.getElementById('_newfwd.extport'), 'blur',
function() {