Skip to content

Commit

Permalink
luci-mod-network: dhcp.js: relax CNAME domain validation
Browse files Browse the repository at this point in the history
Relax the CNAME domain validation to allow wildcard names.

Fixes: openwrt#6801
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
  • Loading branch information
jow- committed Feb 18, 2024
1 parent 3980c19 commit c8cddc3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down

0 comments on commit c8cddc3

Please sign in to comment.