Merge pull request #1096 from T-X/lede-enable-multicast-snooping

This commit is contained in:
Matthias Schiffer 2017-04-18 15:11:36 +02:00 committed by GitHub
commit 4a0ba9e45b
2 changed files with 3 additions and 1 deletions

View File

@ -34,6 +34,8 @@ uci:section('network', 'interface', 'client', {
auto = true, auto = true,
ipv6 = false, ipv6 = false,
macaddr = sysconfig.primary_mac, macaddr = sysconfig.primary_mac,
igmp_snooping = true,
multicast_querier = true,
}) })
uci:save('network') uci:save('network')

View File

@ -9,12 +9,12 @@ uci:section('network', 'interface', 'wan',
{ {
ifname = sysconfig.wan_ifname, ifname = sysconfig.wan_ifname,
type = 'bridge', type = 'bridge',
igmp_snooping = true,
multicast_querier = false, multicast_querier = false,
peerdns = false, peerdns = false,
auto = true, auto = true,
} }
) )
uci:delete('network', 'wan', 'igmp_snooping')
if not uci:get('network', 'wan', 'proto') then if not uci:get('network', 'wan', 'proto') then
uci:set('network', 'wan', 'proto', 'dhcp') uci:set('network', 'wan', 'proto', 'dhcp')