luci-mod-admin-full: don't replace DHCPv6 hostname
[project/luci.git] / modules / luci-mod-admin-full / luasrc / view / admin_status / index.htm
index d29a894..a46ee83 100644 (file)
                                                tr.className = 'cbi-section-table-row cbi-rowstyle-' + ((i % 2) + 1);
 
                                        var host = hosts[duid2mac(info.leases6[i].duid)];
-                                       if (host)
+                                       if (!info.leases6[i].hostname && host)
                                                tr.insertCell(-1).innerHTML = String.format(
                                                        '<div style="max-width:200px;overflow:hidden;text-overflow:ellipsis">%s</div>',
                                                        ((host.name && (host.ipv4 || host.ipv6))