Skip to content

Commit

Permalink
luci-app-udpxy: disambiguate strings
Browse files Browse the repository at this point in the history
Note: udpxy can run multiple instances, this GUI can configure them
but procd currently does not.

Signed-off-by: Paul Donald <[email protected]>
  • Loading branch information
systemcrash committed May 30, 2024
1 parent b4fc61a commit b93ee9d
Showing 1 changed file with 22 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ return view.extend({
var m, s, o;

m = new form.Map('udpxy', _('udpxy'),
_('udpxy is a UDP-to-HTTP multicast traffic relay daemon, here you can configure the settings.'));
_('udpxy is an IPTV stream relay, a UDP-to-HTTP multicast traffic relay daemon which forwards multicast UDP streams to HTTP clients.'));

s = m.section(form.TypedSection, 'udpxy');
s.anonymous = true;
Expand All @@ -22,39 +22,48 @@ return view.extend({
o = s.option(form.Flag, 'respawn', _('Respawn'));
o.default = o.disabled;

o = s.option(form.Flag, 'verbose', _('Verbose'));
o = s.option(form.Flag, 'verbose', _('Verbose logging'));
o.default = o.disabled;

o = s.option(form.Flag, 'status', _('Status'));
o = s.option(form.Flag, 'status', _('Client statistics'));

o = s.option(form.Value, 'bind', _('Bind IP/Interface'));
o = s.option(form.Value, 'bind', _('HTTP Listen interface'));
o.datatype = 'or(ipaddr, network)';
o.placeholder = '0.0.0.0 || lan1';

o = s.option(form.Value, 'port', _('Port'));
o = s.option(form.Value, 'port', _('Port'), _('Default') + ' : ' + '%s'.format('4022'));
o.datatype = 'port';
o.placeholder = '4022';

o = s.option(form.Value, 'source', _('Source IP/Interface'));
o = s.option(form.Value, 'source', _('Multicast subscribe source interface'), _('Default') + ' : ' + '%s'.format('0.0.0.0'));
o.datatype = 'or(ipaddr, network)';
o.placeholder = '0.0.0.0 || br-lan';

o = s.option(form.Value, 'max_clients', _('Max clients'));

o = s.option(form.Value, 'max_clients', _('Client amount upper limit'));
o.datatype = 'range(1, 5000)';

o = s.option(form.Value, 'log_file', _('Log file'));
o = s.option(form.Value, 'log_file', _('Log file'), _('Default') + ' : <code>/var/log/udpxy</code>');
o.placeholder = '/var/log/udpxy';

o = s.option(form.Value, 'buffer_size', _('Buffer size'));
o.datatype = 'range(4096, 2097152)';
o = s.option(form.Value, 'buffer_size', _('Ingress buffer size'), _('Unit: bytes, Kb, Mb; Max 2097152 bytes'));
o.placeholder = '4Kb';

o = s.option(form.Value, 'buffer_messages', _('Buffer messages'));
o = s.option(form.Value, 'buffer_messages', _('Buffer message amount'), _('-1 is all.'));
o.datatype = 'or(-1, and(min(1),uinteger))';
o.placeholder = '1';

o = s.option(form.Value, 'buffer_time', _('Buffer time'));
o = s.option(form.Value, 'buffer_time', _('Buffer time limit'), _('-1 is unlimited.'));
o.datatype = 'or(-1, and(min(1),uinteger))';
o.placeholder = '1';

o = s.option(form.Value, 'nice_increment', _('Nice increment'));
o.datatype = 'or(and(max(-1),uinteger), and(min(1),uinteger))';
o.placeholder = '0';

o = s.option(form.Value, 'mcsub_renew', _('Multicast subscription renew'));
o = s.option(form.Value, 'mcsub_renew', _('Renew multicast subscription periodicity'), _('Unit: seconds; 0 is skip.'));
o.datatype = 'or(0, range(30, 64000))';
o.placeholder = '0';

return m.render();
}
Expand Down

0 comments on commit b93ee9d

Please sign in to comment.