Merge pull request #1933 from Ansuel/hostname_upnp
authorJo-Philipp Wich <jo@mein.io>
Fri, 13 Jul 2018 12:50:28 +0000 (14:50 +0200)
committerGitHub <noreply@github.com>
Fri, 13 Jul 2018 12:50:28 +0000 (14:50 +0200)
luci-app-upnp: add hostname info

1  2 
applications/luci-app-upnp/luasrc/view/upnp_status.htm

index e5cb9854d187b38d5ff2ec63648114e5254fd915,53018e8a2ff1b82b4fb7c5b8c2e37df6d64b7af0..ea79e57a6af6a4d22ae850beb40ea31f1d7d9ab2
                                                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))
 +                                              E('<div><input class="cbi-button cbi-button-remove" type="button" value="<%:Delete%>" onclick="upnp_delete_fwd(%d)" /></div>'.format(st[i].num))
                                        ]);
  
                                cbi_update_table(tb, rows, '<em><%:There are no active redirects.%></em>');