From dac932f55306b56fffdca2d3fd2b201658fa53b9 Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Sat, 3 Oct 2015 17:09:25 +0100 Subject: [PATCH] fix multi-ip attach This got broken in f7dfe9d --- weave | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/weave b/weave index 72766758..90db5253 100755 --- a/weave +++ b/weave @@ -537,11 +537,9 @@ attach() { netnsenter ip link set $CONTAINER_IFNAME up || return 1 - if [ -n "$NEW_ADDRS" ] ; then - for ADDR in "$NEW_ADDRS" ; do - arp_update $CONTAINER_IFNAME $ADDR "netnsenter" - done - fi + for ADDR in $NEW_ADDRS ; do + arp_update $CONTAINER_IFNAME $ADDR "netnsenter" + done # Route multicast packets across the weave network. # This must come last in 'attach'. If you change this, change weavewait to match.