Skip to content

Commit

Permalink
fix luci device select UI
Browse files Browse the repository at this point in the history
  • Loading branch information
stackia committed Jan 18, 2025
1 parent 9bd62ec commit 47b8d4f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"use strict";
"require form";
"require view";
"require tools.widgets as widgets";

return view.extend({
render: function () {
Expand Down Expand Up @@ -44,13 +45,14 @@ return view.extend({
o.default = "1";

o = s.option(
form.Value,
"upstream-interface",
widgets.DeviceSelect,
"upstream_interface",
_("rtp2httpd_Upstream Interface"),
_(
"rtp2httpd_Interface to use for requesting upstream media stream (default none, which follows the routing table)"
)
);
o.noaliases = true;
o.datatype = "interface";

o = s.option(form.Value, "maxclients", _("rtp2httpd_Max clients"));
Expand Down
4 changes: 2 additions & 2 deletions openwrt-support/rtp2httpd/files/rtp2httpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ config rtp2httpd
option respawn '1'
option port '5140'
# option verbose '2'
# option upstream-interface 'iptv'
# option upstream_interface 'iptv'
# option maxclients '5'
# option hostname 'somehost.example.com'
# option fcc-nat-traversal '0'
# option fcc_nat_traversal '0'
4 changes: 2 additions & 2 deletions openwrt-support/rtp2httpd/files/rtp2httpd.init
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ start_instance() {
append_arg "$cfg" port "--listen"
append_arg "$cfg" maxclients "--maxclients"
append_arg "$cfg" hostname "--hostname"
append_arg "$cfg" fcc-nat-traversal "--fcc-nat-traversal"
append_arg "$cfg" upstream-interface "--upstream-interface"
append_arg "$cfg" fcc_nat_traversal "--fcc-nat-traversal"
append_arg "$cfg" upstream_interface "--upstream-interface"

config_get_bool aux "$cfg" 'respawn' '0'
[ "$aux" = 1 ] && procd_set_param respawn
Expand Down

0 comments on commit 47b8d4f

Please sign in to comment.