From 8b39953242b1ec20c9bd13b2b301b5a6d63c7b40 Mon Sep 17 00:00:00 2001 From: George Yang Date: Thu, 7 Dec 2023 10:17:18 +0000 Subject: [PATCH] mcastmngr: Set the "igmp" as the default protocol for mcast proxy/snooping config For example, in the current LUCI iptv page, option "proto" is not provided, and IGMP is assumed. --- mcastmngr/files/common/lib/mcast/common.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mcastmngr/files/common/lib/mcast/common.sh b/mcastmngr/files/common/lib/mcast/common.sh index d3063152d..e0bf2214f 100755 --- a/mcastmngr/files/common/lib/mcast/common.sh +++ b/mcastmngr/files/common/lib/mcast/common.sh @@ -62,7 +62,7 @@ read_snooping() { local proto config_get sec_enable "$config" enable 0 - config_get proto "$config" proto + config_get proto "$config" proto "igmp" if [ "$sec_enable" == "0" ]; then return @@ -103,7 +103,7 @@ read_proxy() { local proto config_get sec_enable "$config" enable 0 - config_get proto "$config" proto + config_get proto "$config" proto "igmp" if [ "$sec_enable" == "0" ]; then return