From: Jo-Philipp Wich Date: Wed, 16 Sep 2020 08:23:35 +0000 (+0200) Subject: luci-base: dhcp.js: allow hostname to be "*" X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=146930008bb0a3bd45d800e00bb5b8267d6fffa5;p=project%2Fluci.git luci-base: dhcp.js: allow hostname to be "*" Fixes: #4430 Signed-off-by: Jo-Philipp Wich (cherry picked from commit bdcd09496342d3b8609e718e289656427fa0b28c) --- 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;