From 146930008bb0a3bd45d800e00bb5b8267d6fffa5 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 16 Sep 2020 10:23:35 +0200 Subject: [PATCH] luci-base: dhcp.js: allow hostname to be "*" Fixes: #4430 Signed-off-by: Jo-Philipp Wich (cherry picked from commit bdcd09496342d3b8609e718e289656427fa0b28c) --- modules/luci-base/htdocs/luci-static/resources/protocol/dhcp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/luci-base/htdocs/luci-static/resources/protocol/dhcp.js b/modules/luci-base/htdocs/luci-static/resources/protocol/dhcp.js index f0a3ec579c..efdb818c45 100644 --- a/modules/luci-base/htdocs/luci-static/resources/protocol/dhcp.js +++ b/modules/luci-base/htdocs/luci-static/resources/protocol/dhcp.js @@ -20,7 +20,7 @@ return network.registerProtocol('dhcp', { var dev = this.getL2Device() || this.getDevice(), o; o = s.taboption('general', form.Value, 'hostname', _('Hostname to send when requesting DHCP')); - o.datatype = 'hostname'; + o.datatype = 'or(hostname, "*")'; o.load = function(section_id) { return callFileRead('/proc/sys/kernel/hostname').then(L.bind(function(hostname) { this.placeholder = hostname; -- 2.30.2