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.
This commit is contained in:
George Yang 2023-12-07 10:17:18 +00:00 committed by Rahul Thakur
parent 6d0de809ec
commit 8b39953242

View file

@ -62,7 +62,7 @@ read_snooping() {
local proto local proto
config_get sec_enable "$config" enable 0 config_get sec_enable "$config" enable 0
config_get proto "$config" proto config_get proto "$config" proto "igmp"
if [ "$sec_enable" == "0" ]; then if [ "$sec_enable" == "0" ]; then
return return
@ -103,7 +103,7 @@ read_proxy() {
local proto local proto
config_get sec_enable "$config" enable 0 config_get sec_enable "$config" enable 0
config_get proto "$config" proto config_get proto "$config" proto "igmp"
if [ "$sec_enable" == "0" ]; then if [ "$sec_enable" == "0" ]; then
return return