Skip to content

Commit

Permalink
Add udpxy_renew_period nvram key to set udpxy param "-M : periodicall…
Browse files Browse the repository at this point in the history
…y renew multicast subscription (skip if 0 sec) [default = 0 sec]", and set its default value to 120 to avoid IPTV broken after 4 minutes
  • Loading branch information
Yonsm committed Jan 15, 2021
1 parent 88a26f9 commit 02d7ba9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion trunk/user/rc/net.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,8 @@ start_udpxy(char *wan_ifname)
"-m", wan_ifname,
"-p", nvram_safe_get("udpxy_enable_x"),
"-B", "65536",
"-c", nvram_safe_get("udpxy_clients")
"-c", nvram_safe_get("udpxy_clients"),
"-M", nvram_safe_get("udpxy_renew_period")
);
}

Expand Down
1 change: 1 addition & 0 deletions trunk/user/shared/defaults.c
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,7 @@ struct nvram_pair router_defaults[] = {
{ "force_mld", "0" },
{ "udpxy_enable_x", "0" },
{ "udpxy_clients", "10" },
{ "udpxy_renew_period", "120" },
#if defined(APP_XUPNPD)
{ "xupnpd_enable_x", "0" },
{ "xupnpd_udpxy", "0" },
Expand Down

0 comments on commit 02d7ba9

Please sign in to comment.