Merge pull request #1961 from weaveworks/issues/1956-any-iface

Wait for multicast route on any interface

Fixes #1956.
This commit is contained in:
Matthias Radestock committed 2016-02-09 09:29:05 +00:00
commit 15a92f9c92
1 file changed
+1 -1
+1 -1
View File
@@ -53,7 +53,7 @@ func EnsureInterfaceAndMcastRoute(ifaceName string) (*net.Interface, error) {
}
dest := net.IPv4(224, 0, 0, 0)
check := func(route netlink.Route) bool {
return route.LinkIndex == iface.Index && route.Dst != nil && route.Dst.IP.Equal(dest)
return route.Dst != nil && route.Dst.IP.Equal(dest)
}
// check for currently-existing route after subscribing, to avoid race
routes, err := netlink.RouteList(nil, netlink.FAMILY_V4)