Skip to content

Commit

Permalink
Merge pull request #6711 from systemcrash/dns_nitpick
Browse files Browse the repository at this point in the history
luci-mod-network: nitpick of CNAME, MX, SRV syntax formatting
  • Loading branch information
systemcrash authored Dec 4, 2023
2 parents d75626e + a90b33d commit d179d78
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -663,15 +663,15 @@ return view.extend({
ss.sortable = true;
ss.rowcolors = true;

so = ss.option(form.Value, 'srv', _('SRV'), _('Syntax: <code>_service._proto.example.com</code>.'));
so = ss.option(form.Value, 'srv', _('SRV'), _('Syntax: <code>_service._proto.example.com.</code>'));
so.rmempty = false;
so.datatype = 'hostname';
so.placeholder = '_sip._tcp.example.com';
so.placeholder = '_sip._tcp.example.com.';

so = ss.option(form.Value, 'target', _('Target'), _('CNAME or fqdn'));
so.rmempty = false;
so.datatype = 'hostname';
so.placeholder = 'sip.example.com';
so.placeholder = 'sip.example.com.';

so = ss.option(form.Value, 'port', _('Port'));
so.rmempty = false;
Expand Down Expand Up @@ -703,12 +703,12 @@ return view.extend({
so = ss.option(form.Value, 'domain', _('Domain'));
so.rmempty = false;
so.datatype = 'hostname';
so.placeholder = 'example.com';
so.placeholder = 'example.com.';

so = ss.option(form.Value, 'relay', _('Relay'));
so.rmempty = false;
so.datatype = 'hostname';
so.placeholder = 'relay.example.com';
so.placeholder = 'relay.example.com.';

so = ss.option(form.Value, 'pref', _('Priority'), _('Ordinal: lower comes first.'));
so.rmempty = true;
Expand All @@ -729,12 +729,12 @@ return view.extend({
so = ss.option(form.Value, 'cname', _('Domain'));
so.rmempty = false;
so.datatype = 'hostname';
so.placeholder = 'www.example.com';
so.placeholder = 'www.example.com.';

so = ss.option(form.Value, 'target', _('Target'));
so.rmempty = false;
so.datatype = 'hostname';
so.placeholder = 'example.com';
so.placeholder = 'example.com.';

o = s.taboption('hosts', form.SectionValue, '__hosts__', form.GridSection, 'domain', null,
_('Hostnames are used to bind a domain name to an IP address. This setting is redundant for hostnames already configured with static leases, but it can be useful to rebind an FQDN.'));
Expand Down

0 comments on commit d179d78

Please sign in to comment.