From 9386c0184567167c7d8ccd4b707424c92e69f5dc Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Mon, 8 Feb 2016 14:04:25 +0000 Subject: [PATCH] Wait for multicast route on any interface, to match weave script which only adds a route if there isn't one already --- net/if.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/if.go b/net/if.go index f8904f5560..f107433e2c 100644 --- a/net/if.go +++ b/net/if.go @@ -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)