From c8cddc35302380882bab910679f717d65f715029 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 19 Feb 2024 00:22:38 +0100 Subject: [PATCH] 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 --- .../htdocs/luci-static/resources/view/network/dhcp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')); -- 2.30.2