From: Jo-Philipp Wich Date: Sun, 18 Feb 2024 23:22:38 +0000 (+0100) Subject: luci-mod-network: dhcp.js: relax CNAME domain validation X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c8cddc35302380882bab910679f717d65f715029;p=project%2Fluci.git luci-mod-network: dhcp.js: relax CNAME domain validation Relax the CNAME domain validation to allow wildcard names. Fixes: #6801 Signed-off-by: Jo-Philipp Wich --- diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js index 2006657f0f..c723a45054 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js @@ -883,7 +883,7 @@ return view.extend({ so = ss.option(form.Value, 'cname', _('Domain')); so.rmempty = false; - so.datatype = 'hostname'; + so.validate = validateHostname; so.placeholder = 'www.example.com.'; so = ss.option(form.Value, 'target', _('Target'));