Commit bdcd0949 authored by Jo-Philipp Wich's avatar Jo-Philipp Wich
Browse files

luci-base: dhcp.js: allow hostname to be "*"



Fixes: #4430
Signed-off-by: default avatarJo-Philipp Wich <jo@mein.io>
parent 4cdad94c
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment