summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-upnp/luasrc/view
diff options
context:
space:
mode:
authorAnsuel Smith <ansuelsmth@gmail.com>2018-06-17 19:31:43 +0200
committerAnsuel Smith <ansuelsmth@gmail.com>2018-07-03 17:46:39 +0200
commitafd14fb9c71b4874292dc93c0a9e59142b443805 (patch)
treeee8503b5aaed344a4fd2fa1c4ab74eb975e8f51c /applications/luci-app-upnp/luasrc/view
parentcde13dc2459fa20ad0f889dbee925c7bdddaf806 (diff)
luci-app-upnp: add hostname info
This adds the hostname info in the index page of luci. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Diffstat (limited to 'applications/luci-app-upnp/luasrc/view')
-rw-r--r--applications/luci-app-upnp/luasrc/view/upnp_status.htm2
1 files changed, 2 insertions, 0 deletions
diff --git a/applications/luci-app-upnp/luasrc/view/upnp_status.htm b/applications/luci-app-upnp/luasrc/view/upnp_status.htm
index ee385b24a..53018e8a2 100644
--- a/applications/luci-app-upnp/luasrc/view/upnp_status.htm
+++ b/applications/luci-app-upnp/luasrc/view/upnp_status.htm
@@ -23,6 +23,7 @@
st[i].proto,
st[i].extport,
st[i].intaddr,
+ st[i].host_hint || "<%:Unknown%>",
st[i].intport,
st[i].descr,
E('<input class="cbi-button cbi-button-remove" type="button" value="<%:Delete%>" onclick="upnp_delete_fwd(%d)" />'.format(st[i].num))
@@ -41,6 +42,7 @@
<div class="th"><%:Protocol%></div>
<div class="th"><%:External Port%></div>
<div class="th"><%:Client Address%></div>
+ <div class="th"><%:Host%></div>
<div class="th"><%:Client Port%></div>
<div class="th"><%:Description%></div>
<div class="th cbi-section-actions">&#160;</div>