diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-09-16 10:23:35 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-09-16 10:23:35 +0200 |
commit | bdcd09496342d3b8609e718e289656427fa0b28c (patch) | |
tree | f624329686281163fead0515b8ebc33be93f447b /modules | |
parent | 4cdad94c8742f63e78fd30fe6bd9d05f05405aa7 (diff) |
luci-base: dhcp.js: allow hostname to be "*"
Fixes: #4430
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/luci-base/htdocs/luci-static/resources/protocol/dhcp.js | 2 |
1 files changed, 1 insertions, 1 deletions
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 f0a3ec579..efdb818c4 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; |