diff options
Diffstat (limited to 'applications/luci-firewall/luasrc/view')
-rw-r--r-- | applications/luci-firewall/luasrc/view/firewall/cbi_addforward.htm | 6 |
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() { |