summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-status/htdocs
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-06-30 17:26:07 +0200
committerJo-Philipp Wich <jo@mein.io>2021-06-30 17:26:07 +0200
commite3357deb7d273b6a982dfaf9800c83eba85fe6b2 (patch)
treeddf177a94f4652a8e4f45a744fc33813a3d1206d /modules/luci-mod-status/htdocs
parentc4f429461545d1401429e7ba133f24a55d1015b6 (diff)
luci-mod-status: don't set '-' hostname when creating static lease
Fixes: #5153 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-status/htdocs')
-rw-r--r--modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/40_dhcp.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/40_dhcp.js b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/40_dhcp.js
index 9b40e23b5e..69305a2a9c 100644
--- a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/40_dhcp.js
+++ b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/40_dhcp.js
@@ -31,7 +31,7 @@ return baseclass.extend({
ev.currentTarget.blur();
var cfg = uci.add('dhcp', 'host');
- uci.set('dhcp', cfg, 'name', lease.hostname || '-');
+ uci.set('dhcp', cfg, 'name', lease.hostname);
uci.set('dhcp', cfg, 'ip', lease.ipaddr);
uci.set('dhcp', cfg, 'mac', lease.macaddr.toUpperCase());
@@ -48,7 +48,7 @@ return baseclass.extend({
var cfg = uci.add('dhcp', 'host'),
ip6arr = lease.ip6addrs[0] ? validation.parseIPv6(lease.ip6addrs[0]) : null;
- uci.set('dhcp', cfg, 'name', lease.hostname || '-');
+ uci.set('dhcp', cfg, 'name', lease.hostname);
uci.set('dhcp', cfg, 'duid', lease.duid.toUpperCase());
uci.set('dhcp', cfg, 'mac', lease.macaddr);
if (ip6arr)