luci-app-dhcp: 'addresses' helptext improvement with info from manpage.
authorPaul Dee <itsascambutmailmeanyway@gmail.com>
Wed, 19 Oct 2022 16:02:33 +0000 (18:02 +0200)
committerJo-Philipp Wich <jo@mein.io>
Mon, 3 Apr 2023 11:45:03 +0000 (13:45 +0200)
Placeholder hint also reflects syntax.

Signed-off-by: Paul Dee <itsascambutmailmeanyway@gmail.com>
[replace asdf.com with example.com, use … instead of ..., remove uneeded
 &nbsp; entities]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from commit 45f02d94b2c06599fa0d0ab75b7c5cf485ffc2a8)

modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js

index 44f3346595e2c24389d3bd6061c6bfa300fb527a..e193111c487e847565d9a3321e90f94646db1f9a 100644 (file)
@@ -289,9 +289,12 @@ return view.extend({
 
                o = s.taboption('general', form.DynamicList, 'address',
                        _('Addresses'),
-                       _('List of domains to force to an IP address.'));
+                       _('Resolve specified FQDNs to an IP.') + '<br />' +
+                       _('Syntax: <code>/fqdn[/fqdn…]/[ipaddr]</code>.') + '<br />' +
+                       _('<code>/#/</code> matches any domain. <code>/example.com/</code> returns NXDOMAIN.') + '<br />' +
+                       _('<code>/example.com/#</code> returns NULL addresses (<code>0.0.0.0</code> and <code>::</code>) for example.com and its subdomains.'));
                o.optional = true;
-               o.placeholder = '/router.local/192.168.0.1';
+               o.placeholder = '/router.local/router.lan/192.168.0.1';
 
                o = s.taboption('general', form.DynamicList, 'ipset',
                        _('IP sets'),